@@ -9,7 +9,7 @@ platform:
99steps :
1010- name : test
1111 image : docker.io/drycc/go-dev
12- pull : if-not-exists
12+ pull : always
1313 privileged : true
1414 commands :
1515 - STACK=20 make test-style
2929 - name : image_registries
3030 path : /etc/containers/registries.conf
3131
32- - name : publish- pack
32+ - name : publish pack
3333 image : docker.io/drycc/go-dev
34- pull : if-not-exists
34+ pull : always
3535 privileged : true
3636 commands :
3737 - echo $DOCKER_PASSWORD | docker login $DRYCC_REGISTRY --username $DOCKER_USERNAME --password-stdin
@@ -74,9 +74,9 @@ platform:
7474 os : linux
7575
7676steps :
77- - name : publish
77+ - name : publish pack
7878 image : docker.io/drycc/go-dev
79- pull : if-not-exists
79+ pull : always
8080 privileged : true
8181 commands :
8282 - echo $DOCKER_PASSWORD | docker login $DRYCC_REGISTRY --username $DOCKER_USERNAME --password-stdin
@@ -105,20 +105,22 @@ type: docker
105105name : manifest-pack
106106
107107steps :
108- - name : generate manifest
108+ - name : generate pack manifest
109109 image : docker.io/library/alpine
110- pull : if-not-exists
111110 commands :
112- - sed -i "s/docker.io/$${DRYCC_REGISTRY}/g" .drone/manifest.tmpl
111+ - sed -i "s/docker.io/$${DRYCC_REGISTRY}/g" .drone/manifest-run .tmpl
113112 - sed -i "s/docker.io/$${DRYCC_REGISTRY}/g" .drone/manifest-build.tmpl
113+ - sed -i "s/20/$${STACK}/g" .drone/manifest-run.tmpl
114+ - sed -i "s/20/$${STACK}/g" .drone/manifest-build.tmpl
114115 environment :
116+ STACK : 20
115117 DRYCC_REGISTRY :
116118 from_secret : drycc_registry
117119
118- - name : publish-20
120+ - name : publish run
119121 image : plugins/manifest
120122 settings :
121- spec : .drone/manifest.tmpl
123+ spec : .drone/manifest-run .tmpl
122124 username :
123125 from_secret : docker_username
124126 password :
@@ -130,7 +132,7 @@ steps:
130132 DRYCC_REGISTRY :
131133 from_secret : drycc_registry
132134
133- - name : publish-20- build
135+ - name : publish build
134136 image : plugins/manifest
135137 settings :
136138 spec : .drone/manifest-build.tmpl
@@ -157,19 +159,20 @@ depends_on:
157159---
158160kind : pipeline
159161type : docker
160- name : linux-buildpacks-arm64
162+ name : linux-buildpacks-amd64
161163
162164platform :
163165 arch : amd64
164166 os : linux
165167
166168steps :
167- - name : publish
169+ - name : publish amd64 buildpack
168170 image : docker.io/drycc/go-dev
169- pull : if-not-exists
171+ pull : always
170172 privileged : true
171173 commands :
172174 - echo $DOCKER_PASSWORD | docker login $DRYCC_REGISTRY --username $DOCKER_USERNAME --password-stdin
175+ - docker system service --time 0 unix:///var/run/docker.sock &
173176 - STACK=20 VERSION=20-linux-amd64 make publish-buildpack
174177 environment :
175178 DEV_REGISTRY :
@@ -202,12 +205,13 @@ platform:
202205 os : linux
203206
204207steps :
205- - name : publish
208+ - name : publish arm64 buildpack
206209 image : docker.io/drycc/go-dev
207- pull : if-not-exists
210+ pull : always
208211 privileged : true
209212 commands :
210213 - echo $DOCKER_PASSWORD | docker login $DRYCC_REGISTRY --username $DOCKER_USERNAME --password-stdin
214+ - docker system service --time 0 unix:///var/run/docker.sock &
211215 - STACK=20 VERSION=20-linux-arm64 make publish-buildpack
212216 environment :
213217 DEV_REGISTRY :
@@ -236,17 +240,19 @@ type: docker
236240name : manifest-buildpacks
237241
238242steps :
239- - name : generate manifest
243+ - name : generate buildpacks manifest
240244 image : docker.io/library/alpine
241- pull : if-not-exists
242245 commands :
243246 - sed -i "s/docker.io/$${DRYCC_REGISTRY}/g" .drone/manifest-buildpacks.tmpl
244- - sed -i "s/docker.io/${DRYCC_REGISTRY}/g" builder.toml
247+ - sed -i "s/docker.io/$${DRYCC_REGISTRY}/g" builder.toml
248+ - sed -i "s/20/$${STACK}/g" .drone/manifest-buildpacks.tmpl
249+ - sed -i "s/20/$${STACK}/g" builder.toml
245250 environment :
251+ STACK : 20
246252 DRYCC_REGISTRY :
247253 from_secret : drycc_registry
248254
249- - name : publish-20-buildpacks
255+ - name : publish buildpack
250256 image : plugins/manifest
251257 settings :
252258 spec : .drone/manifest-buildpacks.tmpl
0 commit comments