From c67724c944030c87d6c6828c7922d39dbd16d0da Mon Sep 17 00:00:00 2001 From: Andrea Cosentino Date: Fri, 2 Feb 2024 14:00:32 +0100 Subject: [PATCH] Release Pipeline: Add an option to tag the container image as stable while running the release Signed-off-by: Andrea Cosentino --- .github/workflows/release-pipeline.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/release-pipeline.yml b/.github/workflows/release-pipeline.yml index b4ad8e199..53725b83c 100644 --- a/.github/workflows/release-pipeline.yml +++ b/.github/workflows/release-pipeline.yml @@ -7,6 +7,12 @@ on: description: | The tag version we want to release without prefix (e.g. 2.0.0) required: true + stable: + type: boolean + description: | + Is this a stable release? If so we are going to tag also a stable container image to be used in the Kaoto Operator + required: false + default: false jobs: tag-and-release: @@ -115,3 +121,15 @@ jobs: shell: bash run: | docker push quay.io/kaotoio/kaoto-app:${{ github.event.inputs.tag_version }} + + - name: "🔧 Build Container Image" + shell: bash + run: | + docker build -t "quay.io/kaotoio/kaoto-app:stable" . + if: ${{ github.event.inputs.stable }} + + - name: "📤 Upload Container Image" + shell: bash + run: | + docker push quay.io/kaotoio/kaoto-app:stable + if: ${{ github.event.inputs.stable }}