@@ -67,7 +67,7 @@ name: arm64
6767platform :
6868 arch : arm64
6969
70- steps :
70+ steps :
7171 - name : submodules
7272 image : alpine/git
7373 commands :
@@ -96,41 +96,41 @@ trigger:
9696 - push
9797
9898---
99- kind : pipeline
100- type : docker
101- name : gpu
102-
103- platform :
104- arch : amd64
105-
106- steps :
107- - name : submodules
108- image : alpine/git
109- commands :
110- - git submodule init
111- -
' git config --global url."https://github.com/".insteadOf [email protected] :' 112- - " git submodule update --recursive"
113- - name : build and publish
114- image : plugins/docker
115- settings :
116- registry : registry.dev.kern.ai
117- username :
118- from_secret : docker_username
119- password :
120- from_secret : docker_password
121- dockerfile : gpu.Dockerfile
122- repo : " registry.dev.kern.ai/${DRONE_REPO}"
123- tags : ["${DRONE_COMMIT_SHA}-gpu", "${DRONE_COMMIT_BRANCH}-gpu"]
124- cache_from :
125- - " registry.dev.kern.ai/${DRONE_REPO}:${DRONE_COMMIT_BRANCH}-gpu"
126-
127- trigger :
128- branch :
129- - dev
130- event :
131- - push
132-
133- ---
99+ # kind: pipeline
100+ # type: docker
101+ # name: gpu
102+
103+ # platform:
104+ # arch: amd64
105+
106+ # steps:
107+ # - name: submodules
108+ # image: alpine/git
109+ # commands:
110+ # - git submodule init
111+ # - 'git config --global url."https://github.com/".insteadOf [email protected] :'112+ # - "git submodule update --recursive"
113+ # - name: build and publish
114+ # image: plugins/docker
115+ # settings:
116+ # registry: registry.dev.kern.ai
117+ # username:
118+ # from_secret: docker_username
119+ # password:
120+ # from_secret: docker_password
121+ # dockerfile: gpu.Dockerfile
122+ # repo: "registry.dev.kern.ai/${DRONE_REPO}"
123+ # tags: ["${DRONE_COMMIT_SHA}-gpu", "${DRONE_COMMIT_BRANCH}-gpu"]
124+ # cache_from:
125+ # - "registry.dev.kern.ai/${DRONE_REPO}:${DRONE_COMMIT_BRANCH}-gpu"
126+
127+ # trigger:
128+ # branch:
129+ # - dev
130+ # event:
131+ # - push
132+
133+ # ---
134134kind : pipeline
135135type : docker
136136name : amd64-dockerhub
@@ -160,12 +160,42 @@ trigger:
160160 - tag
161161
162162---
163+ # kind: pipeline
164+ # type: docker
165+ # name: amd64-gpu-dockerhub
166+
167+ # platform:
168+ # arch: amd64
169+
170+ # steps:
171+ # - name: submodules
172+ # image: alpine/git
173+ # commands:
174+ # - git submodule init
175+ # - 'git config --global url."https://github.com/".insteadOf [email protected] :'176+ # - "git submodule update --recursive"
177+ # - name: build and publish
178+ # image: plugins/docker
179+ # settings:
180+ # username:
181+ # from_secret: dockerhub_username
182+ # password:
183+ # from_secret: dockerhub_password
184+ # dockerfile: gpu.Dockerfile
185+ # repo: "kernai/${DRONE_REPO_NAME}"
186+ # tag: "${DRONE_TAG}-gpu"
187+
188+ # trigger:
189+ # event:
190+ # - tag
191+
192+ # ---
163193kind : pipeline
164194type : docker
165- name : amd64-gpu -dockerhub
195+ name : arm64 -dockerhub
166196
167197platform :
168- arch : amd64
198+ arch : arm64
169199
170200steps :
171201 - name : submodules
@@ -181,57 +211,27 @@ steps:
181211 from_secret : dockerhub_username
182212 password :
183213 from_secret : dockerhub_password
184- dockerfile : gpu.Dockerfile
185214 repo : " kernai/${DRONE_REPO_NAME}"
186- tag : " ${DRONE_TAG}-gpu "
215+ tag : " ${DRONE_TAG}-drone-arm64 "
187216
188217trigger :
189218 event :
190219 - tag
191220
192221---
193222kind : pipeline
194- type : docker
195- name : arm64-dockerhub
196-
197- platform :
198- arch : arm64
199-
223+ name : manifest-version
200224steps :
201- - name : submodules
202- image : alpine/git
203- commands :
204- - git submodule init
205- -
' git config --global url."https://github.com/".insteadOf [email protected] :' 206- - " git submodule update --recursive"
207- - name : build and publish
208- image : plugins/docker
225+ - name : manifest
226+ image : plugins/manifest
209227 settings :
228+ spec : drone-manifest-version.tmpl
229+ tag : " ${DRONE_TAG}"
230+ ignore_missing : true
210231 username :
211232 from_secret : dockerhub_username
212233 password :
213234 from_secret : dockerhub_password
214- repo : " kernai/${DRONE_REPO_NAME}"
215- tag : " ${DRONE_TAG}-drone-arm64"
216-
217- trigger :
218- event :
219- - tag
220-
221- ---
222- kind : pipeline
223- name : manifest-version
224- steps :
225- - name : manifest
226- image : plugins/manifest
227- settings :
228- spec : drone-manifest-version.tmpl
229- tag : " ${DRONE_TAG}"
230- ignore_missing : true
231- username :
232- from_secret : dockerhub_username
233- password :
234- from_secret : dockerhub_password
235235
236236depends_on :
237237 - amd64-dockerhub
@@ -245,16 +245,16 @@ trigger:
245245kind : pipeline
246246name : manifest-latest
247247steps :
248- - name : manifest
249- image : plugins/manifest
250- settings :
251- spec : drone-manifest-latest.tmpl
252- tag : " ${DRONE_TAG}"
253- ignore_missing : true
254- username :
255- from_secret : dockerhub_username
256- password :
257- from_secret : dockerhub_password
248+ - name : manifest
249+ image : plugins/manifest
250+ settings :
251+ spec : drone-manifest-latest.tmpl
252+ tag : " ${DRONE_TAG}"
253+ ignore_missing : true
254+ username :
255+ from_secret : dockerhub_username
256+ password :
257+ from_secret : dockerhub_password
258258
259259depends_on :
260260 - manifest-version
0 commit comments