-
Notifications
You must be signed in to change notification settings - Fork 1
/
cloudbuild.master.yaml
42 lines (38 loc) · 1.42 KB
/
cloudbuild.master.yaml
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
steps:
- id: master
name: gcr.io/kaniko-project/executor:latest
args:
- --destination=gcr.io/$PROJECT_ID/opentelemetry-collector/otelcol:master
- --cache=true
- --cache-ttl=6h
- --cache-repo=gcr.io/$PROJECT_ID/opentelemetry-collector/otelcol/cache
- --dockerfile=Dockerfile
- --context=dir:///workspace
- --reproducible
- --skip-unused-stages=true
- --target=otelcol
- --build-arg=GOLANG_VERSION=${_GOLANG_VERSION}
- --build-arg=ALPINE_VERSION=${_ALPINE_VERSION}
- --build-arg=OTELCOL_VERSION=master
- --build-arg=OTELCONTRIBCOL_VERSION=master
- id: master-debug
name: gcr.io/kaniko-project/executor:latest
args:
- --destination=gcr.io/$PROJECT_ID/opentelemetry-collector/otelcol:master-debug
- --cache=true
- --cache-ttl=6h
- --cache-repo=gcr.io/$PROJECT_ID/opentelemetry-collector/otelcol/cache
- --dockerfile=Dockerfile
- --context=dir:///workspace
- --reproducible
- --skip-unused-stages=true
- --target=otelcol-debug
- --build-arg=GOLANG_VERSION=${_GOLANG_VERSION}
- --build-arg=ALPINE_VERSION=${_ALPINE_VERSION}
- --build-arg=OTELCOL_VERSION=master
- --build-arg=OTELCONTRIBCOL_VERSION=master
substitutions:
_GOLANG_VERSION: "1.15"
_ALPINE_VERSION: "3.12"
tags: ["opentelemetry-collector.master", "opentelemetry-collector-contrib.master"]
timeout: 900s # 15min