Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
CD workflow improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed May 8, 2024
1 parent 1c56ba8 commit 928e4b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ jobs:
echo -e "::group::\033[34mFetching manifest of image…\033[0m"
docker manifest inspect "ghcr.io/${{env.IMAGE_NAME}}:${{matrix.version}}"
docker manifest inspect "ghcr.io/${{env.IMAGE_NAME}}:${{matrix.version}}" | jq
image_base_layers=$(docker manifest inspect "ghcr.io/${{env.IMAGE_NAME}}:${{matrix.version}}" -v 2>/dev/null | jq '.[0].OCIManifest.layers[].digest')
image_base_layers=$(docker manifest inspect "ghcr.io/${{env.IMAGE_NAME}}:${{matrix.version}}" -v 2>/dev/null | jq '.layers[].digest')
if [[ -z "$image_base_layers" ]] ; then
echo "::warning::Rebuild ${{matrix.version}} (reason: new image)"
Expand Down

0 comments on commit 928e4b4

Please sign in to comment.