Skip to content

Commit d91bdef

Browse files
authored
fix(ci): add mult arch image build when tag (#4294)
1 parent 4dccf43 commit d91bdef

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

ci/workflows/main.yml

+32-1
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,9 @@ steps:
195195
timeout_in_minutes: 5
196196
retry: *auto-retry
197197

198-
- label: "release docker image"
198+
- label: "release docker image: amd64"
199199
command: "ci/scripts/docker.sh"
200+
key: "build-amd64"
200201
if: build.tag != null
201202
env:
202203
PUSH_GHCR: true
@@ -207,3 +208,33 @@ steps:
207208
GHCR_TOKEN: ghcr-token
208209
timeout_in_minutes: 25
209210
retry: *auto-retry
211+
212+
- label: "docker-build-push: aarch64"
213+
command: "ci/scripts/docker.sh"
214+
key: "build-aarch64"
215+
if: build.tag != null
216+
env:
217+
PUSH_GHCR: true
218+
plugins:
219+
- seek-oss/aws-sm#v2.3.1:
220+
env:
221+
GHCR_USERNAME: ghcr-username
222+
GHCR_TOKEN: ghcr-token
223+
timeout_in_minutes: 25
224+
retry: *auto-retry
225+
agents:
226+
queue: "linux-arm64"
227+
228+
- label: "multi arch image create push"
229+
command: "ci/scripts/multi-arch-docker.sh"
230+
if: build.tag != null
231+
depends_on:
232+
- "build-amd64"
233+
- "build-aarch64"
234+
plugins:
235+
- seek-oss/aws-sm#v2.3.1:
236+
env:
237+
GHCR_USERNAME: ghcr-username
238+
GHCR_TOKEN: ghcr-token
239+
timeout_in_minutes: 10
240+
retry: *auto-retry

0 commit comments

Comments
 (0)