Skip to content

Synchronize Container Registries #919

Synchronize Container Registries

Synchronize Container Registries #919

name: Synchronize Container Registries
on:
workflow_run:
workflows:
- 'Publish release'
- 'Publish in-development builds from main'
types:
- completed
workflow_dispatch:
jobs:
sync:
name: Synchronize Container Registries
runs-on: ubuntu-22.04
timeout-minutes: 60
if: github.repository == 'projectnessie/nessie'
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Sync images
env:
REGCLIENT_VERSION: 0.6.1
QUAY_IO_USER: ${{ secrets.QUAY_IO_USER }}
QUAY_IO_TOKEN: ${{ secrets.QUAY_IO_TOKEN }}
GHCR_IO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
run: |
curl -L https://github.com/regclient/regclient/releases/download/v${REGCLIENT_VERSION}/regsync-linux-amd64 > regsync
sha512sum -c .github/docker-sync/regsync.sha512
chmod 755 regsync
./regsync -v info -c .github/docker-sync/regsync.yml once