Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/mirror-openjdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Mirror openjdk:27-ea-slim from Docker Hub into GHCR as quarantine/openjdk.
#
# 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/openjdk

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-openjdk
cancel-in-progress: false

permissions:
contents: read
packages: write

jobs:
mirror-openjdk:
uses: ./.github/workflows/_mirror-image.yml
with:
source_image: docker.io/library/openjdk
source_tag: 27-ea-slim
dest_image: ghcr.io/toddysm/quarantine/openjdk
dest_tag: 27-ea-slim
force: ${{ github.event_name == 'workflow_dispatch' && inputs.force || false }}