Skip to content

Commit

Permalink
fix(CI): use jq in checkimage (#282)
Browse files Browse the repository at this point in the history
Use jq to query for image digest to remove the need to rely on skopeo inspect output having json keys in particular order.
RHINENG-13679
  • Loading branch information
petrblaho authored Oct 16, 2024
1 parent 9134fee commit 551a2f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/checkimage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Check change
run: |
base=$(grep -Po '(?<=FROM )(.*)' build/Dockerfile)
skopeo inspect "docker://$base" | grep -Po '(?<="Digest": ")([^"]+)' > .baseimagedigest
skopeo inspect "docker://$base" | jq .Digest --raw-output > .baseimagedigest
- name: Do change if the digest changed
run: |
git config user.name 'Update-a-Bot'
Expand Down

0 comments on commit 551a2f5

Please sign in to comment.