Skip to content

Commit

Permalink
Release Pipeline: Add an option to tag the container image as stable …
Browse files Browse the repository at this point in the history
…while running the release

Signed-off-by: Andrea Cosentino <[email protected]>
  • Loading branch information
oscerd authored and lordrip committed Feb 2, 2024
1 parent c3a34c1 commit 3a040d7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}

0 comments on commit 3a040d7

Please sign in to comment.