Only sync certain images #38
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
on: | |
push: | |
branches: | |
- "eaudetcobello/KU-617" | |
schedule: | |
- cron: "0 0 * * *" # Runs every midnight | |
jobs: | |
publish: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Skopeo YAML source | |
run: | | |
cat <<EOF > $GITHUB_WORKSPACE/registry.k8s.io-config.yaml | |
registry.k8s.io: | |
images-by-semver: | |
pause: ">= 3.0" | |
EOF | |
- name: Skopeo | |
run: | | |
docker run quay.io/skopeo/stable:v1.15 sync \ | |
--src yaml \ | |
--dest docker \ | |
$GITHUB_WORKSPACE/registry.k8s.io-config.yaml ghcr.io/canonical \ | |
--format oci \ | |
--dest-creds ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} |