Skip to content

mirror / quarantine/openjdk #62

mirror / quarantine/openjdk

mirror / quarantine/openjdk #62

# 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 }}