77
77
if : ${{ needs.check-changes.outputs.aio == 'true' }}
78
78
if : github.repository == 'stackhpc/stackhpc-kayobe-config'
79
79
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
+
80
90
check-tags :
81
91
name : Check container image tags
82
92
needs :
@@ -89,52 +99,30 @@ jobs:
89
99
secrets : inherit
90
100
if : ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
91
101
92
- # Test two upgrade scenarios: Ubuntu Jammy OVS and Rocky 9 OVN.
93
-
94
- all-in-one-upgrade-ubuntu-jammy-ovs :
95
- name : aio upgrade (Ubuntu Jammy OVS)
102
+ check-tags-previous :
103
+ name : Check container image tags
96
104
needs :
97
105
- check-changes
98
- - build-kayobe-image
99
- uses : ./.github/workflows/stackhpc-all-in-one .yml
106
+ - build-kayobe-image-previous
107
+ uses : ./.github/workflows/stackhpc-check-tags .yml
100
108
with :
101
- kayobe_image : ${{ needs.build-kayobe-image.outputs.kayobe_image }}
102
- os_distribution : ubuntu
103
- os_release : jammy
104
- ssh_username : ubuntu
105
- neutron_plugin : ovs
106
- OS_CLOUD : openstack
107
- if : ${{ needs.check-changes.outputs.aio == 'true' }}
108
- upgrade : true
109
+ kayobe_image : ${{ needs.build-kayobe-image-previous.outputs.kayobe_image }}
110
+ if : ${{ needs.check-changes.outputs.check-tags == 'true' }}
109
111
secrets : inherit
110
112
if : ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
111
113
112
- all-in-one-upgrade-rocky-9-ovn :
113
- name : aio upgrade (Rocky 9 OVN)
114
- needs :
115
- - check-changes
116
- - build-kayobe-image
117
- uses : ./.github/workflows/stackhpc-all-in-one.yml
118
- with :
119
- kayobe_image : ${{ needs.build-kayobe-image.outputs.kayobe_image }}
120
- os_distribution : rocky
121
- os_release : " 9"
122
- ssh_username : cloud-user
123
- neutron_plugin : ovn
124
- OS_CLOUD : openstack
125
- if : ${{ needs.check-changes.outputs.aio == 'true' }}
126
- upgrade : true
127
- secrets : inherit
128
- if : ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
114
+ # Test two upgrade scenarios: Ubuntu Jammy OVS and Rocky 9 OVN.
129
115
130
116
all-in-one-upgrade-ubuntu-jammy-ovn :
131
- name : aio upgrade (Ubuntu Jammy OVS )
117
+ name : aio upgrade (Ubuntu Jammy OVN )
132
118
needs :
133
119
- check-changes
134
120
- build-kayobe-image
121
+ - build-kayobe-image-previous
135
122
uses : ./.github/workflows/stackhpc-all-in-one.yml
136
123
with :
137
124
kayobe_image : ${{ needs.build-kayobe-image.outputs.kayobe_image }}
125
+ previous_kayobe_image : ${{ needs.build-kayobe-image-previous.outputs.kayobe_image }}
138
126
os_distribution : ubuntu
139
127
os_release : jammy
140
128
ssh_username : ubuntu
@@ -144,21 +132,3 @@ jobs:
144
132
upgrade : true
145
133
secrets : inherit
146
134
if : ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
147
-
148
- all-in-one-upgrade-rocky-9-ovs :
149
- name : aio upgrade (Rocky 9 OVN)
150
- needs :
151
- - check-changes
152
- - build-kayobe-image
153
- uses : ./.github/workflows/stackhpc-all-in-one.yml
154
- with :
155
- kayobe_image : ${{ needs.build-kayobe-image.outputs.kayobe_image }}
156
- os_distribution : rocky
157
- os_release : " 9"
158
- ssh_username : cloud-user
159
- neutron_plugin : ovs
160
- OS_CLOUD : openstack
161
- if : ${{ needs.check-changes.outputs.aio == 'true' }}
162
- upgrade : true
163
- secrets : inherit
164
- if : ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
0 commit comments