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 - make bootstrap test test-cover
1613 environment :
@@ -22,13 +19,8 @@ steps:
2219 - push
2320 - tag
2421 - pull_request
25- volumes :
26- - name : image_registries
27- path : /etc/containers/registries.conf
2822
2923- name : codecov
30- image : docker.io/drycc/go-dev
31- pull : always
3224 commands :
3325 - curl -s https://codecov.io/bash | bash
3426 environment :
3931 - success
4032
4133- name : publish
42- image : docker.io/drycc/go-dev
43- pull : always
44- privileged : true
4534 commands :
4635 - echo $DOCKER_PASSWORD | docker login $DRYCC_REGISTRY --username $DOCKER_USERNAME --password-stdin
4736 - make docker-build docker-immutable-push
@@ -59,24 +48,10 @@ steps:
5948 event :
6049 - push
6150 - tag
62- volumes :
63- - name : image_registries
64- path : /etc/containers/registries.conf
65-
66- trigger :
67- event :
68- - push
69- - tag
70- - pull_request
71-
72- volumes :
73- - name : image_registries
74- host :
75- path : /etc/containers/registries.conf
7651
7752---
7853kind : pipeline
79- type : docker
54+ type : exec
8055name : linux-arm64
8156
8257platform :
@@ -85,9 +60,6 @@ platform:
8560
8661steps :
8762- name : publish
88- image : docker.io/drycc/go-dev
89- pull : always
90- privileged : true
9163 commands :
9264 - echo $DOCKER_PASSWORD | docker login $DRYCC_REGISTRY --username $DOCKER_USERNAME --password-stdin
9365 - make docker-build docker-immutable-push
@@ -101,19 +73,10 @@ steps:
10173 from_secret : docker_username
10274 DOCKER_PASSWORD :
10375 from_secret : docker_password
104- volumes :
105- - name : image_registries
106- path : /etc/containers/registries.conf
107-
108- trigger :
109- event :
110- - push
111- - tag
112-
113- volumes :
114- - name : image_registries
115- host :
116- path : /etc/containers/registries.conf
76+ when :
77+ event :
78+ - push
79+ - tag
11780
11881---
11982kind : pipeline
@@ -155,12 +118,11 @@ depends_on:
155118
156119---
157120kind : pipeline
158- type : docker
121+ type : exec
159122name : chart
160123
161124steps :
162125- name : generate chart
163- image : docker.io/drycc/python-dev
164126 commands :
165127 - IMAGE_TAG=$([ ! -z $DRONE_TAG ] && echo \"${DRONE_TAG:1}\" || echo \"canary\")
166128 - sed -i "s/image_tag:\ \"canary\"/image_tag:\ $IMAGE_TAG/g" charts/builder/values.yaml
@@ -173,8 +135,7 @@ steps:
173135 from_secret : chartmuseum_password
174136 CHARTMUSEUM_API :
175137 from_secret : chartmuseum_api
176-
177- trigger :
178- event :
179- - push
180- - tag
138+ when :
139+ event :
140+ - push
141+ - tag
0 commit comments