Skip to content

chore: update sync config.yaml images for 2024-03-27-16-47 #122

chore: update sync config.yaml images for 2024-03-27-16-47

chore: update sync config.yaml images for 2024-03-27-16-47 #122

name: images are public
on:
push:
branches:
- main
jobs:
images-are-public:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
- uses: GeoNet/setup-crane@00c9e93efa4e1138c9a7a5c594acd6c75a2fbf0c # main
- 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[] | select(.destination | contains("amazonaws.com") | not) | .destination' <<< "$(yq e . -o json config.yaml)" \
| xargs -n 1 -I{} crane digest {}