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 f8fc694 commit 3cafde1
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,13 +38,13 @@ jobs:
echo ${{ env.CURRENT_TAG }}
docker build -t "${{ env.IMAGE_NAME }}:${{ env.CURRENT_TAG }}" .
DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' $IMAGE_NAME:$CURRENT_TAG | awk -F '@' '{print $2}')
DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' ${{ env.IMAGE_NAME }}:${{ env.CURRENT_TAG }} | awk -F '@' '{print $2}')
echo "Docker Image Digest: $DIGEST"
echo "digest=$DIGEST" >> $GITHUB_ENV
- name: Fetch Latest Image Digest from Docker Hub
run: |
LATEST_DIGEST=$(wget -qO- "https://hub.docker.com/v2/namespaces/library/repositories/$IMAGE_NAME/tags/$CURRENT_TAG" | jq -r ' .digest')
LATEST_DIGEST=$(wget -qO- "https://hub.docker.com/v2/namespaces/library/repositories/${{ env.IMAGE_NAME }}/tags/${{ env.CURRENT_TAG }}" | jq -r ' .digest')
echo "Latest Image Digest: $LATEST_DIGEST"
echo "latest_digest=$LATEST_DIGEST" >> $GITHUB_ENV
Expand Down

0 comments on commit 3cafde1

Please sign in to comment.