11kind : pipeline
2- type : docker
2+ type : exec
33name : linux-amd64
44
55platform :
@@ -8,9 +8,6 @@ platform:
88
99steps :
1010- name : test
11- image : docker.io/drycc/go-dev
12- pull : always
13- privileged : true
1411 commands :
1512 - cd grafana && make test && cd ..
1613 - cd telegraf && make test && cd ..
@@ -23,14 +20,8 @@ steps:
2320 - push
2421 - tag
2522 - pull_request
26- volumes :
27- - name : image_registries
28- path : /etc/containers/registries.conf
2923
3024- name : publish
31- image : docker.io/drycc/go-dev
32- pull : always
33- privileged : true
3425 commands :
3526 - echo $DOCKER_PASSWORD | docker login $DRYCC_REGISTRY --username $DOCKER_USERNAME --password-stdin
3627 - cd grafana && make build-all push-all
@@ -48,24 +39,10 @@ steps:
4839 event :
4940 - push
5041 - tag
51- volumes :
52- - name : image_registries
53- path : /etc/containers/registries.conf
54-
55- trigger :
56- event :
57- - push
58- - tag
59- - pull_request
60-
61- volumes :
62- - name : image_registries
63- host :
64- path : /etc/containers/registries.conf
6542
6643---
6744kind : pipeline
68- type : docker
45+ type : exec
6946name : linux-arm64
7047
7148platform :
@@ -74,9 +51,6 @@ platform:
7451
7552steps :
7653- name : publish
77- image : docker.io/drycc/go-dev
78- pull : always
79- privileged : true
8054 commands :
8155 - echo $DOCKER_PASSWORD | docker login $DRYCC_REGISTRY --username $DOCKER_USERNAME --password-stdin
8256 - cd grafana && make build-all push-all
@@ -90,19 +64,10 @@ steps:
9064 from_secret : docker_username
9165 DOCKER_PASSWORD :
9266 from_secret : docker_password
93- volumes :
94- - name : image_registries
95- path : /etc/containers/registries.conf
96-
97- trigger :
98- event :
99- - push
100- - tag
101-
102- volumes :
103- - name : image_registries
104- host :
105- path : /etc/containers/registries.conf
67+ when :
68+ event :
69+ - push
70+ - tag
10671
10772---
10873kind : pipeline
@@ -169,12 +134,11 @@ depends_on:
169134
170135---
171136kind : pipeline
172- type : docker
137+ type : exec
173138name : chart
174139
175140steps :
176141- name : generate chart
177- image : docker.io/drycc/python-dev
178142 commands :
179143 - IMAGE_TAG=$([ ! -z $DRONE_TAG ] && echo \"${DRONE_TAG:1}\" || echo \"canary\")
180144 - sed -i "s/image_tag:\ \"canary\"/image_tag:\ $IMAGE_TAG/g" charts/monitor/values.yaml
@@ -187,8 +151,7 @@ steps:
187151 from_secret : chartmuseum_password
188152 CHARTMUSEUM_API :
189153 from_secret : chartmuseum_api
190-
191- trigger :
192- event :
193- - push
194- - tag
154+ when :
155+ event :
156+ - push
157+ - tag
0 commit comments