From d8d217123aef3915f27b971bc51b007e16723b0d Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Wed, 20 Sep 2023 16:27:43 +0100 Subject: [PATCH] Container promote: Add flags for old/new images We have similar flags for syncing images, so should have the same for promotion. --- .github/workflows/container-promote.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/container-promote.yml b/.github/workflows/container-promote.yml index f68bf6ae..c600aae9 100644 --- a/.github/workflows/container-promote.yml +++ b/.github/workflows/container-promote.yml @@ -16,6 +16,14 @@ on: tag: description: Container image tag to promote required: true + promote-old-images: + description: Whether to promote images for Yoga and older + type: boolean + default: true + promote-new-images: + description: Whether to promote images for Zed and newer + type: boolean + default: true env: ANSIBLE_FORCE_COLOR: True @@ -40,8 +48,12 @@ jobs: ansible/dev-pulp-container-promote.yml \ -e dev_pulp_repository_container_promotion_tag="$TAG" \ -e kolla_container_image_filter="'$FILTER'" \ - -e kolla_base_distros_override="'$DISTROS'" + -e kolla_base_distros_override="'$DISTROS'" \ + -e sync_old_images="'$PROMOTE_OLD_IMAGES'" \ + -e sync_new_images="'$PROMOTE_NEW_IMAGES'" env: TAG: ${{ github.event.inputs.tag }} FILTER: ${{ github.event.inputs.filter }} DISTROS: ${{ github.event.inputs.distros }} + PROMOTE_OLD_IMAGES: ${{ github.event.inputs.promote-old-images }} + PROMOTE_NEW_IMAGES: ${{ github.event.inputs.promote-new-images }}