Skip to content

Commit 49a94ed

Browse files
authored
Merge pull request #243 from stackhpc/container-promote-flags
Container promote: Add flags for old/new images
2 parents 67f8279 + d8d2171 commit 49a94ed

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/container-promote.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ on:
1616
tag:
1717
description: Container image tag to promote
1818
required: true
19+
promote-old-images:
20+
description: Whether to promote images for Yoga and older
21+
type: boolean
22+
default: true
23+
promote-new-images:
24+
description: Whether to promote images for Zed and newer
25+
type: boolean
26+
default: true
1927

2028
env:
2129
ANSIBLE_FORCE_COLOR: True
@@ -40,8 +48,12 @@ jobs:
4048
ansible/dev-pulp-container-promote.yml \
4149
-e dev_pulp_repository_container_promotion_tag="$TAG" \
4250
-e kolla_container_image_filter="'$FILTER'" \
43-
-e kolla_base_distros_override="'$DISTROS'"
51+
-e kolla_base_distros_override="'$DISTROS'" \
52+
-e sync_old_images="'$PROMOTE_OLD_IMAGES'" \
53+
-e sync_new_images="'$PROMOTE_NEW_IMAGES'"
4454
env:
4555
TAG: ${{ github.event.inputs.tag }}
4656
FILTER: ${{ github.event.inputs.filter }}
4757
DISTROS: ${{ github.event.inputs.distros }}
58+
PROMOTE_OLD_IMAGES: ${{ github.event.inputs.promote-old-images }}
59+
PROMOTE_NEW_IMAGES: ${{ github.event.inputs.promote-new-images }}

0 commit comments

Comments
 (0)