Skip to content

Commit

Permalink
fix: Fixed the retrieving of docker image with sha256. (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniotarricone authored May 29, 2024
1 parent a19268b commit 61d5404
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-n-push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ jobs:
docker push -a ghcr.io/${{ github.repository }}
#
# Get sha256 of Docker image.
# Get Docker image with sha256.
#
- name: Get sha256 of Docker image
run: echo "image_sha256=$(docker image inspect -f '{{index .RepoDigests 0}}' ghcr.io/${{ github.repository }}:$BRANCH_NAME | sha256sum | cut -d' ' -f1)" >> "$GITHUB_ENV"
- name: Get Docker image with sha256
run: echo "image_sha256=$(docker image inspect -f '{{index .RepoDigests 0}}' ghcr.io/${{ github.repository }}:$BRANCH_NAME)" >> "$GITHUB_ENV"

#
# Login to Azure.
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/post-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ jobs:
docker push -a ghcr.io/${{ github.repository }}
#
# RELEASE CANDICATE - Get sha256 of Docker image.
# RELEASE CANDICATE - Get Docker image with sha256.
#
- name: RELEASE CANDIDATE - Get sha256 of Docker image
- name: RELEASE CANDIDATE - Get Docker image with sha256
if: steps.semantic.outputs.new_release_published == 'true'
run: echo "image_sha256_rc=$(docker image inspect -f '{{index .RepoDigests 0}}' ghcr.io/${{ github.repository }}:${{ steps.semantic.outputs.new_release_version }}-RC | sha256sum | cut -d' ' -f1)" >> "$GITHUB_ENV"
run: echo "image_sha256_rc=$(docker image inspect -f '{{index .RepoDigests 0}}' ghcr.io/${{ github.repository }}:${{ steps.semantic.outputs.new_release_version }}-RC)" >> "$GITHUB_ENV"

#
# Login to Azure.
Expand Down Expand Up @@ -270,11 +270,11 @@ jobs:
docker push -a ghcr.io/${{ github.repository }}
#
# STABLE - Get sha256 of Docker image.
# STABLE - Get Docker image with sha256.
#
- name: STABLE - Get sha256 of Docker image
- name: STABLE - Get Docker image with sha256
if: steps.semantic.outputs.new_release_published == 'true'
run: echo "image_sha256=$(docker image inspect -f '{{index .RepoDigests 0}}' ghcr.io/${{ github.repository }}:${{ steps.semantic.outputs.new_release_version }} | sha256sum | cut -d' ' -f1)" >> "$GITHUB_ENV"
run: echo "image_sha256=$(docker image inspect -f '{{index .RepoDigests 0}}' ghcr.io/${{ github.repository }}:${{ steps.semantic.outputs.new_release_version }})" >> "$GITHUB_ENV"

#
# STABLE - Update Container App.
Expand Down

0 comments on commit 61d5404

Please sign in to comment.