Skip to content

Update "latest" tagged images on new tag#248

Open
davdhacs wants to merge 10 commits intomainfrom
davdhacs/apollo-ci-latest-tag
Open

Update "latest" tagged images on new tag#248
davdhacs wants to merge 10 commits intomainfrom
davdhacs/apollo-ci-latest-tag

Conversation

@davdhacs
Copy link
Copy Markdown
Contributor

@davdhacs davdhacs commented Apr 9, 2026

Summary

  • On tag pushes, also push a <flavor>-latest tag alongside the versioned tag.
  • add on-demand workflow to push <flavor>-stable tag based on a version[default is latest]

This allows openshift-release mirror config to reference the floating tags latest and stable, removing the need to request testplatform review for every version bump.
To use this: openshift/release#77606 adds the "-latest"(and -stable) image mirroring into the openshift-release config, and then tests will be able to use a "latest" or "stable" tagged rox-ci-image.

Test plan

  • Verify PR build does NOT push latest tags
  • Verify tag/main push DOES push latest tags

🤖 Generated with Claude Code

On non-PR builds (tag/main pushes), also push a
<flavor>-latest tag alongside the versioned tag. This
allows consumers to reference a stable floating tag
without needing to update on every release.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@davdhacs davdhacs force-pushed the davdhacs/apollo-ci-latest-tag branch from 064adca to 2adceb7 Compare April 9, 2026 16:21
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@davdhacs davdhacs requested a review from porridge April 9, 2026 16:29
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

Build Images

Image Flavor Image Tag
jenkins-plugin quay.io/stackrox-io/apollo-ci:jenkins-plugin-0.5.7-10-gf0d10add73
scanner-build quay.io/stackrox-io/apollo-ci:scanner-build-0.5.7-10-gf0d10add73
scanner-test quay.io/stackrox-io/apollo-ci:scanner-test-0.5.7-10-gf0d10add73
stackrox-build quay.io/stackrox-io/apollo-ci:stackrox-build-0.5.7-10-gf0d10add73
stackrox-test quay.io/stackrox-io/apollo-ci:stackrox-test-0.5.7-10-gf0d10add73
stackrox-ui-test quay.io/stackrox-io/apollo-ci:stackrox-ui-test-0.5.7-10-gf0d10add73

@davdhacs davdhacs requested a review from tommartensen April 9, 2026 17:10
davdhacs and others added 5 commits April 9, 2026 11:12
Adds a manually triggered workflow that retags an existing
versioned image as stable without rebuilding. Usage:
  gh workflow run promote-stable.yaml -f version=0.5.7

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use docker buildx imagetools create for server-side manifest
copy instead of pull/tag/push. Run all flavors in one job.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Temporary: adds push tag trigger and shell default for VERSION.
Will revert after testing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove temporary push tag trigger used for testing.
Keep shell default for VERSION.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@davdhacs davdhacs requested review from janisz and mclasmeier April 9, 2026 19:08
@davdhacs davdhacs changed the title Push latest floating tag for apollo-ci images Update "latest" tagged images on new release. Apr 10, 2026
davdhacs and others added 2 commits April 9, 2026 21:54
Check that the current tag is the highest semver tag
reachable from main before pushing latest. This prevents
older tags or tags on non-main branches from overwriting
the latest images.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@davdhacs davdhacs changed the title Update "latest" tagged images on new release. Update "latest" tagged images on new tag Apr 10, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants