Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
Update acb.tpl.yaml (#765)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-wolski authored Nov 17, 2023
1 parent 02764ce commit e831133
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion acb.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ version: 1.0-preview-1
steps:
- id: pull-base-image-amd64
cmd: docker pull --platform linux/amd64 hmctspublic.azurecr.io/base/java:17-distroless && docker tag hmctspublic.azurecr.io/base/java:17-distroless hmctspublic.azurecr.io/base/java/linux/amd64:17-distroless
retries: 3
retryDelay: 3
when: ["-"]
keep: true

Expand All @@ -11,12 +13,16 @@ steps:
--build-arg PLATFORM=/linux/amd64
--platform linux/amd64
.
retries: 3
retryDelay: 3
when:
- pull-base-image-amd64
keep: true

- id: pull-base-image-arm64
cmd: docker pull --platform linux/arm64 hmctspublic.azurecr.io/base/java:17-distroless && docker tag hmctspublic.azurecr.io/base/java:17-distroless hmctspublic.azurecr.io/base/java/linux/arm64:17-distroless
retries: 3
retryDelay: 3
when:
- pull-base-image-amd64
keep: true
Expand All @@ -27,6 +33,8 @@ steps:
--build-arg PLATFORM=/linux/arm64
--platform linux/arm64/v8
.
retries: 3
retryDelay: 3
when:
- pull-base-image-arm64
keep: true
Expand All @@ -35,18 +43,24 @@ steps:
push:
- "{{.Run.Registry}}/{{CI_IMAGE_TAG}}-amd64"
- "{{.Run.Registry}}/{{CI_IMAGE_TAG}}-arm64"
retries: 3
retryDelay: 3
when:
- runtime-amd64
- runtime-arm64

- id: manifest-create
cmd: docker manifest create {{.Run.Registry}}/{{CI_IMAGE_TAG}} {{.Run.Registry}}/{{CI_IMAGE_TAG}}-amd64 {{.Run.Registry}}/{{CI_IMAGE_TAG}}-arm64
retries: 3
retryDelay: 3
when:
- push-images
keep: true

- id: manifest-push
cmd: docker manifest push --purge {{.Run.Registry}}/{{CI_IMAGE_TAG}}
retries: 3
retryDelay: 3
when:
- manifest-create
keep: true
keep: true

0 comments on commit e831133

Please sign in to comment.