Skip to content

Commit

Permalink
Update udocker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bsanchezmir authored Mar 28, 2024
1 parent fbc5f06 commit 41d68e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/udocker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
echo ${{ env.CURRENT_TAG }}
docker build -t "${{ env.IMAGE_NAME }}:${{ env.CURRENT_TAG }}" .
DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' ${{ env.IMAGE_NAME }}:${{ env.CURRENT_TAG }})
echo "Docker Image Digest: $DIGEST"
DIGEST=$(docker inspect --format='{{.Id}}' "${{ env.IMAGE_NAME }}:${{ env.CURRENT_TAG }}" | sed 's/sha256://')
echo "Docker Image Local Digest: $DIGEST"
echo "digest=$DIGEST" >> $GITHUB_ENV
- name: Fetch Latest Image Digest from Docker Hub
Expand Down

0 comments on commit 41d68e2

Please sign in to comment.