Skip to content

Commit 3324dd0

Browse files
committed
pass in image digests
1 parent 3459652 commit 3324dd0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ jobs:
9797
DOCKER_APP_IMAGE_X64: ${{ needs.build.outputs.build-image-x64 }}
9898
outputs:
9999
build-image: ${{ steps.meta.outputs.tags }}
100+
build-image-arm: ${{ needs.build.outputs.build-image-arm }}
101+
build-image-x64: ${{ needs.build.outputs.build-image-x64 }}
100102
steps:
101103
- name: Checkout code
102104
uses: actions/checkout@v4
@@ -161,6 +163,8 @@ jobs:
161163
- test
162164
env:
163165
DOCKER_APP_IMAGE: ${{ needs.merge.outputs.build-image }}
166+
DOCKER_APP_IMAGE_ARM64: ${{ needs.merge.outputs.build-image-arm }}
167+
DOCKER_APP_IMAGE_X64: ${{ needs.merge.outputs.build-image-x64 }}
164168
steps:
165169
- name: Checkout code
166170
uses: actions/checkout@v4
@@ -187,6 +191,6 @@ jobs:
187191
188192
- name: Retag and push the image
189193
run: |
194+
echo $
190195
docker buildx imagetools create \
191-
$(jq -cr '.tags | map("--tag " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
192-
"$(echo "$DOCKER_APP_IMAGE" | cut -f1 -d:)"
196+
$(jq -cr '.tags | map("--tag " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") $DOCKER_APP_IMAGE_ARM64 $DOCKER_APP_IMAGE_X64

0 commit comments

Comments
 (0)