forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
46 lines (38 loc) · 873 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
image: envoyproxy/envoy-build:latest
include:
- project: 'davmey/pipelines'
ref: master
file: '/build_docker_nexus.yaml'
before_script:
- echo "build --disk_cache=$CI_PROJECT_DIR/.cache" >> .bazelrc
cache:
key: bazel_cache
paths:
- .cache/
variables:
DEVOPS_CONTAINER_PATH: /identity-access/envoy
DEVOPS_DOCKERFILE_PATH: deployment
stages:
- build
- publish
build:
stage: build
script:
- bazel build //source/exe:envoy-static
- cp $CI_PROJECT_DIR/bazel-bin/source/exe/envoy-static $CI_PROJECT_DIR/deployment
- ls -ltra $CI_PROJECT_DIR
artifacts:
expire_in: 1 week
paths:
- deployment/envoy-static
build_docker_nexus:
stage: publish
only:
refs:
- master
# trigger downstream build and redeploy
#staging:
# variables:
# ENVIRONMENT: staging
# stage: deploy
# trigger: envoy-config