Skip to content

Commit 3de27ff

Browse files
committed
propagate the buildx commands
1 parent 3324dd0 commit 3de27ff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,5 @@ jobs:
191191
192192
- name: Retag and push the image
193193
run: |
194-
echo $
195194
docker buildx imagetools create \
196195
$(jq -cr '.tags | map("--tag " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") $DOCKER_APP_IMAGE_ARM64 $DOCKER_APP_IMAGE_X64

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
env:
4242
BASE_IMAGE: ${{ steps.get-base-image.outputs.tags }}
4343
run: |
44-
docker pull "$BASE_IMAGE"
44+
docker manifest inspect "$BASE_IMAGE"
4545
4646
- name: Produce release tags
4747
id: tag-meta
@@ -59,5 +59,6 @@ jobs:
5959
env:
6060
BASE_IMAGE: ${{ steps.get-base-image.outputs.tags }}
6161
run: |
62-
echo "$DOCKER_METADATA_OUTPUT_TAGS" | tr ' ' '\n' | xargs -n1 docker tag "$BASE_IMAGE"
63-
docker push --all-tags "$(echo "$BASE_IMAGE" | cut -f1 -d:)"
62+
docker buildx imagetools create \
63+
$(jq -cr '.tags | map("--tag " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
64+
"$(echo "$BASE_IMAGE" | cut -f1 -d:)"

0 commit comments

Comments
 (0)