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 83fa2ab commit 3781382
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,10 @@ jobs:
echo -e "::group::\033[34mFetching manifest of image…\033[0m"
echo "----"
docker manifest inspect "ghcr.io/${{env.IMAGE_NAME}}:${{matrix.version}}" -v 2>/dev/null | jq '.'
echo "----"
docker manifest inspect "ghcr.io/${{env.IMAGE_NAME}}:${{matrix.version}}" -v 2>/dev/null | jq '.layers[].digest'
docker manifest inspect "ghcr.io/${{env.IMAGE_NAME}}:${{matrix.version}}" -v 2>/dev/null | jq '.SchemaV2Manifest'
docker manifest inspect "ghcr.io/${{env.IMAGE_NAME}}:${{matrix.version}}" -v 2>/dev/null | jq '.SchemaV2Manifest.layers[].digest'
image_base_layers=$(docker manifest inspect "ghcr.io/${{env.IMAGE_NAME}}:${{matrix.version}}" -v 2>/dev/null | jq '.layers[].digest')
image_base_layers=$(docker manifest inspect "ghcr.io/${{env.IMAGE_NAME}}:${{matrix.version}}" -v 2>/dev/null | jq '.SchemaV2Manifest.layers[].digest')
if [[ -z "$image_base_layers" ]] ; then
echo "::warning::Rebuild ${{matrix.version}} (reason: new image)"
Expand Down

0 comments on commit 3781382

Please sign in to comment.