-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.23 KB
/
Copy pathmirror-python.yml
File metadata and controls
41 lines (37 loc) · 1.23 KB
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
36
37
38
39
40
41
# Mirror python:3.14-slim from Docker Hub into GHCR as quarantine/python.
#
# This caller only defines triggers and the image-specific inputs; the actual
# digest-check-and-copy logic lives in the reusable _mirror-image.yml workflow.
#
# Naming convention: "mirror-<image>.yml" for image mirror workflows, kept
# separate from "build-<app>.yml" build workflows. See
# docs/contributing/workflow-naming.md.
name: mirror / quarantine/python
on:
# Daily upstream check at 06:00 UTC.
schedule:
- cron: "0 6 * * *"
# Manual run, with an optional force copy.
workflow_dispatch:
inputs:
force:
description: "Copy even when the source and destination digests match."
required: false
default: false
type: boolean
# Avoid overlapping runs for this specific image mirror.
concurrency:
group: mirror-quarantine-python
cancel-in-progress: false
permissions:
contents: read
packages: write
jobs:
mirror-python:
uses: ./.github/workflows/_mirror-image.yml
with:
source_image: docker.io/library/python
source_tag: 3.14-slim
dest_image: ghcr.io/toddysm/quarantine/python
dest_tag: 3.14-slim
force: ${{ github.event_name == 'workflow_dispatch' && inputs.force || false }}