Skip to content

Commit

Permalink
chore: filter out ecr from public check
Browse files Browse the repository at this point in the history
ecr is for private image artifacts
  • Loading branch information
BobyMCbobs committed Oct 10, 2023
1 parent 18bc967 commit 650fcf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/images-are-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
- name: check images are public
run: |
# NOTE: important to not use auth
jq -r -c '.sync as $sync | .build as $build | {"include":[{"destination": $sync[].destination}, {"destination": $build[].destination}]} | .include[].destination' <<< "$(yq e . -o json config.yaml)" | xargs -n 1 -I{} crane digest {}
jq -r -c '.sync as $sync | .build as $build | {"include":[{"destination": $sync[].destination}, {"destination": $build[].destination}]} | .include[] | select(.destination | contains("amazonaws.com") | not) | .destination' <<< "$(yq e . -o json config.yaml)" | xargs -n 1 -I{} crane digest {}

0 comments on commit 650fcf5

Please sign in to comment.