From e40d7ef4833a8f5c7a187ec881fbc1458de2bb11 Mon Sep 17 00:00:00 2001 From: asonix Date: Thu, 8 Feb 2024 09:35:59 -0600 Subject: [PATCH] Split final buildx into multiple steps --- .forgejo/workflows/publish.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/publish.yaml b/.forgejo/workflows/publish.yaml index e218794..73db7c2 100644 --- a/.forgejo/workflows/publish.yaml +++ b/.forgejo/workflows/publish.yaml @@ -143,6 +143,7 @@ jobs: digest="${{ steps.build.outputs.digest }}" touch "/tmp/digests/${digest#sha256:}" echo "Created /tmp/digests/${digest#sha256:}" + shell: bash - name: Upload ${{ matrix.info.platform }} digest uses: https://github.com/actions/upload-artifact@v3 @@ -203,8 +204,9 @@ jobs: name: Create manifest list and push working-directory: /tmp/digests run: | - docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") - $(printf "${{ env.REGISTRY_IMAGE }}@sha256:%s " *) + tags=$(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") + images=$(printf "${{ env.REGISTRY_IMAGE }}@sha256:%s " *) + docker buildx imagetools create "${tags}" "${images}" shell: bash - name: Inspect Image