chore: filter out ecr from public check #175
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: presubmit image documented | |
on: | |
pull_request: {} | |
workflow_dispatch: {} | |
jobs: | |
presubmit-image-documented: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
- uses: GeoNet/setup-crane@00c9e93efa4e1138c9a7a5c594acd6c75a2fbf0c # main | |
- name: resolve image to digest | |
run: | | |
FAILURES=false | |
for IMAGE in $(jq -r -c '.sync as $sync | .build as $build | [{"destination": $sync[].destination}, {"destination": $build[].destination}] | .[].destination' <<< "$(yq e . -o json config.yaml)" | cut -d ':' -f1 | sort | uniq); do | |
if ! grep -q -E "(^| )$IMAGE( |$)" README.md; then | |
echo "Not found in README: $IMAGE" | |
FAILURES=true | |
fi | |
done | |
if [ "$FAILURES" = true ]; then | |
exit 1 | |
fi |