2
2
name : Test deployment and reimage on OpenStack
3
3
on :
4
4
workflow_dispatch :
5
- inputs :
6
- use_RL8 :
7
- required : true
8
- description : Include RL8 tests
9
- type : boolean
10
- default : false
11
5
push :
12
6
branches :
13
7
- main
14
8
pull_request :
15
9
jobs :
16
10
openstack :
17
11
name : openstack-ci
18
- concurrency : ${{ github.ref }}-{{ matrix.os_version }} # to branch/PR + OS
12
+ concurrency :
13
+ group : ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os_version }} # to branch/PR + OS
14
+ cancel-in-progress : true
19
15
runs-on : ubuntu-22.04
20
16
strategy :
17
+ fail-fast : false # allow other matrix jobs to continue even if one fails
21
18
matrix :
22
- os_version : [RL8, RL9]
23
- rl8_selected :
24
- - ${{ inputs.use_RL8 == true }} # only potentially true for workflow_dispatch
25
- rl8_branch :
26
- - ${{ startsWith(github.head_ref, 'rl8') == true }} # only potentially for pull_request, always false on merge
27
- rl8_label :
28
- - ${{ contains(github.event.pull_request.labels.*.name, 'RL8') }} # NB: needs a new commit if added after PR created
29
- exclude :
30
- - os_version : RL8
31
- rl8_selected : false
32
- rl8_branch : false
33
- rl8_label : false
19
+ os_version :
20
+ - RL8
21
+ - RL9
34
22
env :
35
23
ANSIBLE_FORCE_COLOR : True
36
24
OS_CLOUD : openstack
37
25
TF_VAR_cluster_name : slurmci-${{ matrix.os_version }}-${{ github.run_number }}
38
26
CI_CLOUD : ${{ vars.CI_CLOUD }} # default from repo settings
27
+ TF_VAR_os_version : ${{ matrix.os_version }}
39
28
steps :
40
29
- uses : actions/checkout@v2
41
30
103
92
. environments/.stackhpc/activate
104
93
cd $APPLIANCES_ENVIRONMENT_ROOT/terraform
105
94
terraform apply -auto-approve -var-file="${{ env.CI_CLOUD }}.tfvars"
106
- env :
107
- TF_VAR_os_version : ${{ matrix.os_version }}
108
95
109
96
- name : Delete infrastructure if provisioning failed
110
97
run : |
@@ -113,8 +100,6 @@ jobs:
113
100
cd $APPLIANCES_ENVIRONMENT_ROOT/terraform
114
101
terraform destroy -auto-approve -var-file="${{ env.CI_CLOUD }}.tfvars"
115
102
if : failure() && steps.provision_servers.outcome == 'failure'
116
- env :
117
- TF_VAR_os_version : ${{ matrix.os_version }}
118
103
119
104
- name : Configure cluster
120
105
run : |
@@ -213,8 +198,6 @@ jobs:
213
198
cd $APPLIANCES_ENVIRONMENT_ROOT/terraform
214
199
terraform destroy -auto-approve -var-file="${{ env.CI_CLOUD }}.tfvars"
215
200
if : ${{ success() || cancelled() }}
216
- env :
217
- TF_VAR_os_version : ${{ matrix.os_version }}
218
201
219
202
# - name: Delete images
220
203
# run: |
0 commit comments