feat: add reusable-promote workflow (C1 consolidation) - #157
Merged
Conversation
Consolidates promote-testing-to-main.yml from bluefin (~343 LoC), bluefin-lts (~349 LoC), and dakota (~183 LoC) into one reusable workflow. Per-image callers will be ~30 LoC each. No new secrets — uses github.token like the existing per-repo workflows. Inputs: variants (JSON array), cosign_identity_regexp, registry, run_e2e, e2e_suite, lts_floor_days. Includes the gate job (reusable-release-gate) that the original template omitted. Closes #584 (C1 from consistency audit). Assisted-by: Claude Sonnet 4.5 via pi
Dependency ReviewThe following issues were found:
License Issues.github/workflows/reusable-promote.yml
OpenSSF Scorecard
Scanned Files
|
castrojo
added a commit
to projectbluefin/dakota
that referenced
this pull request
Jun 11, 2026
Draft PR — consumer validation test for projectbluefin/actions#157. DO NOT MERGE — will be updated to pin the merged SHA after review. Replaces 183-line promote-testing-to-main.yml with a 30-line caller to projectbluefin/actions/.github/workflows/reusable-promote.yml. Assisted-by: Claude Sonnet 4.5 via pi
Closed
12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Consistency audit C1: consolidate
promote-testing-to-main.ymlfrom all three image repos into one reusable workflow.Before: 875 LoC triplicated across bluefin (343) + bluefin-lts (349) + dakota (183)
After: one 220-line reusable + ~30-line callers in each image repo
Design decisions
No new secrets — uses
github.tokenlike the existing per-repo workflows. The original audit template proposedAPP_ID/APP_PRIVATE_KEYbut none of the existing promote workflows use an App token.Includes the
gate:job — the original template omitted this; the existing per-repo workflows all have it. It callsreusable-release-gate.ymlwithcosign_identity_regexpas a required input (varies per image repo).release-state.yamlschema — kept identical to the existing per-repo format (testing:map keyed by variant name). Nothing reads this file as a pipeline input; it's a record/audit trail only. The template's proposed schema change was unnecessary.Inputs
variantscosign_identity_regexpregistryghcr.io/projectbluefinrun_e2efalsee2e_suitesmokelts_floor_days0Adoption order (canary-first)
dakota— 1 variant pair, lowest user impactbluefin-lts— observe one promotion cyclebluefin— highest user impact, land lastAdoption PRs filed separately once this merges.
Consumer validation
Consumer PR: projectbluefin/dakota#788
Consumer CI run: https://github.com/projectbluefin/dakota/actions/runs/27314334366
Out-of-org consumer impact: N/A —
reusable-promoteis an internal workflow called only by projectbluefin image repos. aurora and bazzite do not usepromote-testing-to-mainfrom this repo.Assisted-by: Claude Sonnet 4.5 via pi