Skip to content

Replace docker with regsync go binary #15

Replace docker with regsync go binary

Replace docker with regsync go binary #15

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 }}:${{ secrets.GITHUB_TOKEN }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go install github.com/regclient/regclient/cmd/regsync@latest
regsync once --config ${GITHUB_WORKSPACE}/build-scripts/hack/sync-registry.yaml