Skip to content

Commit ea8dd5a

Browse files
committed
Build previous release too
1 parent 209d29d commit ea8dd5a

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/workflows/stackhpc-build-kayobe-image.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ on:
2525
type: string
2626
required: false
2727
default: "rockylinux:9"
28+
kayobe_config_branch:
29+
type: string
30+
required: false
2831
if:
2932
description: Whether to run the workflow (workaround for required status checks issue)
3033
type: boolean
@@ -53,6 +56,7 @@ jobs:
5356
- name: Checkout kayobe config
5457
uses: actions/checkout@v4
5558
with:
59+
ref: ${{ inputs.kayobe_config_branch || github.ref }}
5660
submodules: true
5761

5862
- name: Log in to the Container registry

.github/workflows/stackhpc-pull-request.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,16 @@ jobs:
7777
if: ${{ needs.check-changes.outputs.aio == 'true' }}
7878
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
7979

80+
build-kayobe-image-previous:
81+
name: Build Kayobe Image for previous release
82+
needs:
83+
- check-changes
84+
uses: ./.github/workflows/stackhpc-build-kayobe-image.yml
85+
with:
86+
if: ${{ needs.check-changes.outputs.aio == 'true' }}
87+
kayobe_config_branch: rabbitmq-multiple-versions # Note: this would be stackhpc/2023.1 in a proper setup
88+
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
89+
8090
check-tags:
8191
name: Check container image tags
8292
needs:
@@ -89,6 +99,18 @@ jobs:
8999
secrets: inherit
90100
if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
91101

102+
check-tags-previous:
103+
name: Check container image tags
104+
needs:
105+
- check-changes
106+
- build-kayobe-image-previous
107+
uses: ./.github/workflows/stackhpc-check-tags.yml
108+
with:
109+
kayobe_image: ${{ needs.build-kayobe-image-previous.outputs.kayobe_image }}
110+
if: ${{ needs.check-changes.outputs.check-tags == 'true' }}
111+
secrets: inherit
112+
if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
113+
92114
# Test two upgrade scenarios: Ubuntu Jammy OVS and Rocky 9 OVN.
93115

94116
all-in-one-upgrade-ubuntu-jammy-ovs:

0 commit comments

Comments
 (0)