Skip to content

mirror-demos

mirror-demos #6

Workflow file for this run

---
name: mirror-demos
on:
workflow_dispatch:
inputs:
dry_run:
description: 'Run the sync in dry-run mode'
required: false
default: false
type: boolean
permissions:
contents: read
jobs:
sync_demos:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest-16-cores
steps:
- uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
with:
registry: quay.io
username: ${{ secrets.QUAY_IO_USER }}
password: ${{ secrets.QUAY_IO_PASSWORD }}
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
with:
go-version-file: 'go.mod'
- name: install regbot
shell: bash
run: go install github.com/regclient/regclient/cmd/[email protected]
- name: sync images
shell: bash
# yamllint disable rule:indentation
run: |
cd scripts/regclient
regbot once ${{ github.event.inputs.dry_run && ' --dry-run' }} --config regbot_demos.yaml
# yamllint enable rule:indentation