Repository navigation
ci: Log in to Quay with OIDC robot federation and select publish targets by environment - #9238
Conversation
…ets by environment Quay publishing exchanges the job's GitHub OIDC token for a short-lived robot token instead of using QUAY_PUBLISH_PASSWORD. Publishing jobs run in the dockerhub or quay environment, whose variables (REGISTRY, REGISTRY_NAMESPACE, REGISTRY_USERNAME) set where they publish.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 3 Skipped Deployments
|
Docker builds report
|
There was a problem hiding this comment.
No issues found across 3 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Updates Docker publishing to use environment-based image naming and short-lived OIDC authentication. It depends on external Quay/GitHub federation configuration.
Turn on auto-fix | Re-trigger cubic
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9238 +/- ##
=======================================
Coverage 98.96% 98.96%
=======================================
Files 1725 1725
Lines 73959 73959
=======================================
Hits 73193 73193
Misses 766 766 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #24124 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
🗂️ Previous results✅ private-cloud · depot-ubuntu-latest-16 — run #24124 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
✅ oss · depot-ubuntu-latest-arm-16 — run #24124 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
✅ oss · depot-ubuntu-latest-16 — run #24124 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-16)Details
|
Visual Regression31 screenshots compared. See report for details. |
Logs in to Quay with a short-lived robot token from OIDC robot federation instead of
QUAY_PUBLISH_PASSWORD(ENG-1169), and makes the GitHub environment the single input for where an image is published..reusable-docker-publish.ymltakesenvironment(dockerhuborquay) and a shorttarget-image(e.g.flagsmith-api) instead oftarget-registry-urland full image names. The job runs in that environment.REGISTRY(docker.io/quay.io),REGISTRY_NAMESPACE(flagsmith/flagsmithofficial),REGISTRY_USERNAME(flagsmith/flagsmithofficial+ci_user). The image isREGISTRY/REGISTRY_NAMESPACE/target-image.repo:Flagsmith/flagsmith:environment:<env>), and the environment's deployment rules allow onlyv*tags. Quay federation subjects are exact-match, so a ref-based subject couldn't cover every tag.quay) athttps://quay.io/oauth2/federation/robot/tokenfor a 1-hour robot token, then runsdocker login.