Skip to content

Commit da110d7

Browse files
davdhacsclaude
andcommitted
Add configurable target tag suffix to promote-stable workflow
Allows overriding the target tag (default: "stable") for testing promotions without affecting the real stable tags. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 567c533 commit da110d7

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/promote-stable.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
description: "Version to promote (e.g. 0.5.7). Defaults to 'latest'."
88
required: false
99
default: "latest"
10+
target:
11+
description: "Target tag suffix (e.g. 'stable', 'stable-test'). Defaults to 'stable'."
12+
required: false
13+
default: "stable"
1014

1115
env:
1216
QUAY_STACKROX_IO_RW_USERNAME: ${{ secrets.QUAY_STACKROX_IO_RW_USERNAME }}
@@ -25,7 +29,9 @@ jobs:
2529
VERSION="${VERSION:-latest}"
2630
for flavor in scanner-build scanner-test stackrox-build stackrox-test stackrox-ui-test jenkins-plugin; do
2731
SRC="quay.io/stackrox-io/apollo-ci:${flavor}-${VERSION}"
28-
DST="quay.io/stackrox-io/apollo-ci:${flavor}-stable"
32+
TARGET="${{ inputs.target }}"
33+
TARGET="${TARGET:-stable}"
34+
DST="quay.io/stackrox-io/apollo-ci:${flavor}-${TARGET}"
2935
echo "Promoting ${SRC} → ${DST}"
3036
skopeo copy "docker://${SRC}" "docker://${DST}"
3137
done

0 commit comments

Comments
 (0)