Skip to content

Move to sh file

Move to sh file #31

Workflow file for this run

on:
push:
jobs:
publish:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '>=1.22'
- name: Sync registry.k8s.io to ghcr.io/canonical
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go install github.com/regclient/regclient/cmd/regsync@latest
cp ${GITHUB_WORKSPACE}/build-scripts/hack/sync-registry.yaml .
echo $(which regsync)
regsync once --config ./sync-registry.yaml