mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-13 04:05:35 +02:00
Some checks failed
Documentation / Build and Deploy Documentation (push) Has been skipped
Checks / Prefligit / prefligit (push) Failing after 2s
Release Docker Image / define-variables (push) Failing after 3s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (push) Has been skipped
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (push) Has been skipped
Release Docker Image / merge (push) Has been skipped
Checks / Rust / Format (push) Failing after 3s
Checks / Rust / Clippy (push) Failing after 18s
Checks / Rust / Cargo Test (push) Failing after 16s
40 lines
1,000 B
YAML
40 lines
1,000 B
YAML
name: Mirror Container Images
|
|
|
|
on:
|
|
schedule:
|
|
# Run every 2 hours
|
|
- cron: "0 */2 * * *"
|
|
workflow_dispatch:
|
|
inputs:
|
|
dry_run:
|
|
description: 'Dry run (check only, no actual mirroring)'
|
|
required: false
|
|
default: false
|
|
type: boolean
|
|
|
|
concurrency:
|
|
group: "mirror-images"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
mirror-images:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install regctl
|
|
uses: https://github.com/regclient/actions/regctl-installer@main]
|
|
|
|
- name: Check what images need mirroring
|
|
run: |
|
|
echo "Checking images that need mirroring..."
|
|
regsync check -c .forgejo/regsync/regsync.yml -v info
|
|
|
|
- name: Mirror images
|
|
if: ${{ !inputs.dry_run }}
|
|
run: |
|
|
echo "Starting image mirroring..."
|
|
regsync once -c .forgejo/regsync/regsync.yml -v info
|