From 70028792c2934cb181ca332361819a0f7b8639d2 Mon Sep 17 00:00:00 2001 From: MicroOps Date: Thu, 24 Oct 2024 13:54:44 +0800 Subject: [PATCH] add: workflow build docker image Signed-off-by: MicroOps --- .github/workflows/github-actions-build.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/github-actions-build.yaml b/.github/workflows/github-actions-build.yaml index 495aa74..45caff9 100644 --- a/.github/workflows/github-actions-build.yaml +++ b/.github/workflows/github-actions-build.yaml @@ -114,7 +114,7 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max platforms: ${{ matrix.OS }}/${{ matrix.ARCH }} - outputs: type=image,name=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }},push-by-digest=true,name-canonical=true,push=true + outputs: type=image,name=${{ fromJSON(steps.meta.outputs.json).args['DOCKER_META_IMAGES'] }},push-by-digest=true,name-canonical=true,push=true # Sign the resulting Docker image digest except on PRs. # This will only write to the public Rekor transparency log when the Docker # repository is public to avoid leaking data. If you would like to publish @@ -173,8 +173,8 @@ jobs: working-directory: /tmp/digests run: | docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ - $(printf '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *) + $(printf '${{ fromJSON(steps.meta.outputs.json).args["DOCKER_META_IMAGES"] }}@sha256:%s ' *) - name: Inspect image run: | - docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }} \ No newline at end of file + docker buildx imagetools inspect ${{ fromJSON(steps.meta.outputs.json).args['DOCKER_META_IMAGES'] }}:${{ steps.meta.outputs.version }} \ No newline at end of file