Skip to content

Commit 5329800

Browse files
ezhang6811ADOT Patch workflow
andauthored
Tag Private ECR images in release workflow (#1354)
*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 my contribution is made under the terms of the Apache 2.0 license. --------- Co-authored-by: ADOT Patch workflow <adot-patch-workflow@github.com>
1 parent 3952650 commit 5329800

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/release-build.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,27 @@ jobs:
208208
shell: bash
209209
run: .github/scripts/test-adot-javaagent-image.sh "${{ env.TEST_TAG }}" "$VERSION"
210210

211-
- name: Build and push image
211+
- name: Build and push amd64 image to private ECR
212+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 #v6.18.0
213+
with:
214+
push: true
215+
build-args: "ADOT_JAVA_VERSION=${{ env.VERSION }}"
216+
context: .
217+
platforms: linux/amd64
218+
tags: |
219+
${{ env.PRIVATE_REPOSITORY }}:v${{ env.VERSION }}-amd64
220+
221+
- name: Build and push arm64 image to private ECR
222+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 #v6.18.0
223+
with:
224+
push: true
225+
build-args: "ADOT_JAVA_VERSION=${{ env.VERSION }}"
226+
context: .
227+
platforms: linux/arm64
228+
tags: |
229+
${{ env.PRIVATE_REPOSITORY }}:v${{ env.VERSION }}-arm64
230+
231+
- name: Build and push multi-arch image
212232
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 #v6.18.0
213233
with:
214234
push: true

0 commit comments

Comments
 (0)