Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fixed the retrieving of docker image with sha256. #94

Merged
merged 1 commit into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading