Skip to content

Commit 1333ee6

Browse files
authored
Tag Private ECR images in release workflow (#720)
*Issue #, if available:* *Description of changes:* Add tagging to the per-arch images in private ECR as needed by ARS. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
2 parents 77d18c0 + e191e24 commit 1333ee6

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

.github/workflows/release-build.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,26 +156,35 @@ jobs:
156156
verbose: true
157157
packages-dir: dist-pypi
158158

159-
# Publish to public ECR
160-
- name: Build and push public ECR image
159+
- name: Build and push amd64 image to private ECR
161160
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 #v6.18.0
162161
with:
163162
push: true
164163
context: .
165164
file: ./Dockerfile
166-
platforms: linux/amd64,linux/arm64
165+
platforms: linux/amd64
167166
tags: |
168-
${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ env.VERSION }}
167+
${{ env.RELEASE_PRIVATE_REPOSITORY }}:v${{ env.VERSION }}-amd64
168+
169+
- name: Build and push arm64 image to private ECR
170+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 #v6.18.0
171+
with:
172+
push: true
173+
context: .
174+
file: ./Dockerfile
175+
platforms: linux/arm64
176+
tags: |
177+
${{ env.RELEASE_PRIVATE_REPOSITORY }}:v${{ env.VERSION }}-arm64
169178
170-
# Publish to private ECR
171-
- name: Build and push private ECR image
179+
- name: Build and push multi-arch image
172180
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 #v6.18.0
173181
with:
174182
push: true
175183
context: .
176184
file: ./Dockerfile
177185
platforms: linux/amd64,linux/arm64
178186
tags: |
187+
${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ env.VERSION }}
179188
${{ env.RELEASE_PRIVATE_REPOSITORY }}:v${{ env.VERSION }}
180189
181190
publish-layer-prod:

0 commit comments

Comments
 (0)