Skip to content

Commit

Permalink
fix: fixing the REGISTRY_IMAGE tags
Browse files Browse the repository at this point in the history
  • Loading branch information
sadok-f committed Feb 25, 2024
1 parent 42cd66c commit eb3d09b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
new_tag_version: ${{ steps.tag_version.outputs.new_tag_version }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
Expand Down Expand Up @@ -71,7 +71,8 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}:${{ needs.release.outputs.new_tag_version }}
images: ${{ env.REGISTRY_IMAGE }}
tags: ${{ needs.release.outputs.new_tag_version }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -93,7 +94,7 @@ jobs:
context: .
platforms: ${{ matrix.platform }}
file: ./Dockerfile
outputs: type=image,name=${{ env.REGISTRY_IMAGE }}:${{ needs.release.outputs.new_tag_version }},push-by-digest=true,name-canonical=true,push=true
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
-
name: Export digest
run: |
Expand Down Expand Up @@ -131,7 +132,8 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}:${{ needs.docker_publish.outputs.new_tag_version }}
images: ${{ env.REGISTRY_IMAGE }}
tags: ${{ needs.docker_publish.outputs.new_tag_version }}
-
name: Login to Docker Hub
uses: docker/login-action@v3
Expand All @@ -143,7 +145,7 @@ jobs:
working-directory: /tmp/digests
run: |
docker buildx imagetools create "$(jq -cr '.tags | map(\"-t \" + .) | join(\" \")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.REGISTRY_IMAGE }}:${{ needs.docker_publish.outputs.new_tag_version }}@sha256:%s ' *)"
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)"
-
name: Inspect image
run: |
Expand Down

0 comments on commit eb3d09b

Please sign in to comment.