Skip to content

Move to sh file

Move to sh file #28

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'
- run: go install github.com/regclient/regclient/cmd/regsync@latest
- run: echo "$GOPATH/bin" >> $GITHUB_PATH
- name: Sync registry.k8s.io to ghcr.io/canonical
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cp ${GITHUB_WORKSPACE}/build-scripts/hack/sync-registry.yaml .
regsync once --config ./sync-registry.yaml