From 79ec53a7e73d0a3e2ec4bc17930eb628e0f4ff07 Mon Sep 17 00:00:00 2001 From: MicroOps Date: Thu, 24 Oct 2024 14:22:28 +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 3a2b479..d09d4a2 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=${{ fromJSON(steps.meta.outputs.json).args['DOCKER_META_IMAGES'] }},push-by-digest=true,name-canonical=true,push=true + outputs: type=image,name=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }},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 '${{ fromJSON(steps.meta.outputs.json).args['DOCKER_META_IMAGES'] }}@sha256:%s ' *) + $(printf '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *) - name: Inspect image run: | - docker buildx imagetools inspect ${{ fromJSON(steps.meta.outputs.json).args['DOCKER_META_IMAGES'] }}:${{ steps.meta.outputs.version }} \ No newline at end of file + docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }} \ No newline at end of file