Skip to content

feat: promote validated images to additional registries - #1001

Open
neilime wants to merge 5 commits into
mainfrom
feat/docker-mirror-image
Open

neilime wants to merge 5 commits into
mainfrom
feat/docker-mirror-image

Conversation

@neilime

@neilime neilime commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Extend docker-promote-images.yml to publish validated image digests to explicitly configured additional registries and repositories. HTTP Header Authenticator can publish to GHCR and Docker Hub in one promotion job before releasing its chart.

  • Add optional additional-destinations keyed by validated image name and a destination-credentials secret with explicit credentials per additional registry. Reuse Docker setup and image verification. Calls without additional destinations keep their existing behavior.
  • Include every destination in the existing publication lock and deployment journal. Preserve supersession checks and identical-attempt recovery; withhold outputs on partial failure. Keep built-images unchanged and return additional immutable references through additional-images.
  • Use pinned regctl only for cross-repository copies. Preserve manifest/index digests, child manifests, OCI referrers and legacy signature tags, then verify the copied signature and original build provenance before publishing the destination tag. No rebuild, re-signing or extra OIDC permission is needed.
  • Keep the existing promotion action and its dedicated test workflow. Extend the existing signed single/multi-platform fixtures and retain a two-registry transport test. Document the extension in ADR 0013 and regenerate references with CI Dokumentor.

Validation: 108 native promotion tests pass (0.40 seconds). The real two-registry test passes for single-platform and multi-platform images, OCI referrers and legacy signature tags (6.24 seconds including startup, first image download and cleanup). Applicable Super Linter checks pass, including the corrected YAML, Actionlint and offline Zizmor. PR CI passes, including signed single/multi-platform copies, destination signature/provenance verification, identical-attempt repeat promotion and cleanup. The tests reuse existing builds rather than adding another build matrix.

Consumer: http-header-authenticator #51. Replace its candidate pin with the first containing release after this PR is merged.

@github-actions github-actions Bot added the type: feature Introduces a new feature label Nov 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Internal - Pull request - Continuous Integration - Test results

Workflow run and full reports · Commit c24c664

Jobs: 10 success · 0 failure · 0 cancelled · 0 skipped · 0 abandoned.

Test: 270 passed · 0 failed · 0 skipped.

Test details

Test results

Test Results

Status Count
✅ Passed 270
❌ Failed 0
⏭️ Skipped 0
Total 270

✅ Pass Rate: 100.0%

Job results and report availability
Job Result Report artifacts
lint success 1
test-action-helm-generate-docs success 1
test-action-helm-prepare-chart success 1
test-action-helm-prepare-release success 1
test-action-helm-lint-chart success 1
test-action-helm-test-chart success 1
test-action-helm-release-chart success 1
test-action-docker-promote-images success 1
test-action-docker-verify-images success 1
test-action-docker-prune-pull-requests-image-tags success 1

Only this attempt is included. On partial reruns, rerun all producer jobs for complete reports. CodeQL findings remain in code scanning; other diagnostics remain in the job logs.

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Internal - Pull request - Continuous Integration - Code coverage

Workflow run and full reports · Commit c24c664

Jobs: 10 success · 0 failure · 0 cancelled · 0 skipped · 0 abandoned.

Coverage: 9 source report(s); percentages remain separate.

Coverage details

Coverage results

ci-reports-1-test-action-docker-promote-images-actions-docker-promote-images-77f83be8-9698-41ee-a963-28fb96ee4b11/lcov.info

Coverage

Metric Covered Total Percentage
Lines 733 739 99.19%
Branches 130 135 96.30%
Functions 35 36 97.22%

Overall: 99.19% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩

ci-reports-1-test-action-docker-prune-pull-requests-image-tags-actions-docker-prune-pull-requests-image-tags-c1e61b12-fe40-4d0b-90c0-30293c14acff/lcov.info

Coverage

Metric Covered Total Percentage
Lines 192 230 83.48%
Branches 31 39 79.49%
Functions 13 14 92.86%

Overall: 83.48% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩⬜⬜⬜

ci-reports-1-test-action-docker-verify-images-actions-docker-verify-images-9e454d22-c5f0-4816-980f-2036770094da/lcov.info

Coverage

Metric Covered Total Percentage
Lines 78 78 100.00%
Branches 16 16 100.00%
Functions 3 3 100.00%

Overall: 100.00% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩

ci-reports-1-test-action-helm-generate-docs-actions-helm-generate-docs-0bbcea1d-6e76-4a48-886a-2a65f7c68b7f/lcov.info

Coverage

Metric Covered Total Percentage
Lines 368 386 95.34%
Branches 130 140 92.86%
Functions 29 30 96.67%

Overall: 95.34% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩⬜

ci-reports-1-test-action-helm-lint-chart-actions-helm-lint-chart-eb39fd61-cb0a-4de7-9a4c-99325c96ef18/lcov.info

Coverage

Metric Covered Total Percentage
Lines 193 200 96.50%
Branches 45 51 88.24%
Functions 11 13 84.62%

Overall: 96.50% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩⬜

ci-reports-1-test-action-helm-prepare-chart-actions-helm-prepare-chart-4857e095-7707-4b48-89bd-db6f70bd22fa/lcov.info

Coverage

Metric Covered Total Percentage
Lines 204 232 87.93%
Branches 60 75 80.00%
Functions 20 24 83.33%

Overall: 87.93% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩⬜⬜

ci-reports-1-test-action-helm-prepare-release-actions-helm-prepare-release-05d68313-6777-4e35-961c-e118e384b01d/lcov.info

Coverage

Metric Covered Total Percentage
Lines 173 183 94.54%
Branches 48 55 87.27%
Functions 6 6 100.00%

Overall: 94.54% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩⬜

ci-reports-1-test-action-helm-release-chart-actions-helm-release-chart-1c495698-8448-48b4-865f-57052cddd326/lcov.info

Coverage

Metric Covered Total Percentage
Lines 200 200 100.00%
Branches 51 55 92.73%
Functions 5 6 83.33%

Overall: 100.00% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩

ci-reports-1-test-action-helm-test-chart-actions-helm-test-chart-1fab0f9f-3ba4-46ff-a94a-3095a70cbc11/lcov.info

Coverage

Metric Covered Total Percentage
Lines 257 260 98.85%
Branches 58 62 93.55%
Functions 13 13 100.00%

Overall: 98.85% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩

Job results and report availability
Job Result Report artifacts
lint success 1
test-action-helm-generate-docs success 1
test-action-helm-prepare-chart success 1
test-action-helm-prepare-release success 1
test-action-helm-lint-chart success 1
test-action-helm-test-chart success 1
test-action-helm-release-chart success 1
test-action-docker-promote-images success 1
test-action-docker-verify-images success 1
test-action-docker-prune-pull-requests-image-tags success 1

Only this attempt is included. On partial reruns, rerun all producer jobs for complete reports. CodeQL findings remain in code scanning; other diagnostics remain in the job logs.

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Internal - Pull request - Continuous Integration - Lint results

Workflow run and full reports · Commit c24c664

Jobs: 10 success · 0 failure · 0 cancelled · 0 skipped · 0 abandoned.

Lint: Collected diagnostics and Super-Linter summaries. Execution status is included in the job outcomes.

Super-Linter details

Super-linter summary

Language Validation result
BIOME_FORMAT Pass ✅
BIOME_LINT Pass ✅
CHECKOV Pass ✅
GITHUB_ACTIONS Pass ✅
GITHUB_ACTIONS_ZIZMOR Pass ✅
GITLEAKS Pass ✅
GIT_COMMITLINT Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
JSCPD Pass ✅
MARKDOWN Pass ✅
MARKDOWN_PRETTIER Pass ✅
NATURAL_LANGUAGE Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅
YAML_PRETTIER Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter
Super-linter revision: 2da136927bd4a73596db63044b504547c62cb854
Super-linter version: 9.0.0

Job results and report availability
Job Result Report artifacts
lint success 1
test-action-helm-generate-docs success 1
test-action-helm-prepare-chart success 1
test-action-helm-prepare-release success 1
test-action-helm-lint-chart success 1
test-action-helm-test-chart success 1
test-action-helm-release-chart success 1
test-action-docker-promote-images success 1
test-action-docker-verify-images success 1
test-action-docker-prune-pull-requests-image-tags success 1

Only this attempt is included. On partial reruns, rerun all producer jobs for complete reports. CodeQL findings remain in code scanning; other diagnostics remain in the job logs.

@neilime neilime changed the title feat: mirror immutable images across registries feat: promote validated images to additional registries Nov 26, 2026
Comment on lines 17 to +30
description: Direct dependency results, including built-images and validated-images outputs.
required: true
build-workflow:
description: >-
Trusted builder as owner/repository/.github/workflows/file.yml, without a ref.
Defaults to docker-build-images.yml in this action's repository.
Used for both signatures and provenance; override when the builder lives elsewhere.
default: ""
additional-destinations:
description: >-
JSON object mapping validated image names to additional fully qualified tagged
destinations, for example {"app":["docker.io/example/app:1.2.3"]}.
Original candidate destinations are always retained.
default: "{}"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make better inputs devx, I think that this job-result and additional destination are confusing and not very relevant for end user. Same feedback for the workflow using this action

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature Introduces a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant