-
Notifications
You must be signed in to change notification settings - Fork 136
35 lines (30 loc) · 1.07 KB
/
container-sync.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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-24.04
timeout-minutes: 60
if: github.repository == 'projectnessie/nessie'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- 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