File tree Expand file tree Collapse file tree 3 files changed +13
-25
lines changed
environments/.stackhpc/terraform Expand file tree Collapse file tree 3 files changed +13
-25
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
scan :
10
10
concurrency :
11
- group : ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os_version }}-${{ matrix. build }} # to branch/PR + OS + build
11
+ group : ${{ github.workflow }}-${{ github.ref }}-${{ matrix.build }} # to branch/PR + OS + build
12
12
cancel-in-progress : true
13
13
runs-on : ubuntu-latest
14
14
strategy :
15
15
fail-fast : false
16
16
matrix :
17
- os_version :
18
- - RL8
19
- - RL9
20
- build :
21
- - openstack.openhpc
22
- - openstack.openhpc-cuda
23
- exclude :
24
- - os_version : RL8
25
- build : openstack.openhpc-cuda
17
+ build : ["RL8", "RL9", "RL9-cuda"]
26
18
env :
27
- BUILD : ${{ matrix.build }}-${{ matrix.os_version }}
19
+ JSON_PATH : environments/.stackhpc/terraform/cluster_image.json
28
20
29
21
steps :
30
- - name : Download image details artifact
31
- uses : actions/download-artifact@v4
32
- with :
33
- name : image-details-${{ env.BUILD }}
22
+ - uses : actions/checkout@v2
34
23
35
- - name : Use the downloaded artifact
36
- id : manifest
24
+ - name : Parse image name json
25
+ id : mainfest
37
26
run : |
38
- IMAGE_ID=$(cat image-id.txt)
39
- IMAGE_NAME=$(cat image-name.txt)
27
+ IMAGE_NAME=$(jq --arg version "${{ matrix.build }}" -r '.[$version]' "${{ env.JSON_PATH }}")
40
28
echo "image-name=${IMAGE_NAME}" >> "$GITHUB_OUTPUT"
41
- echo "image-id=${IMAGE_ID}" >> "$GITHUB_OUTPUT"
42
29
43
30
- name : Download image
44
31
run : |
Original file line number Diff line number Diff line change
1
+ {
2
+ "RL8" : " openhpc-RL8-241003-1241-a256bce2" ,
3
+ "RL9" : " openhpc-RL9-241003-1241-a256bce2" ,
4
+ "RL9-cuda" : " openhpc-cuda-RL9-241003-1242-a256bce2"
5
+ }
Original file line number Diff line number Diff line change @@ -28,11 +28,7 @@ variable "os_version" {
28
28
variable "cluster_image" {
29
29
description = " single image for all cluster nodes, keyed by os_version - a convenience for CI"
30
30
type = map (string )
31
- default = {
32
- # https://github.com/stackhpc/ansible-slurm-appliance/pull/427
33
- RL8: " openhpc-RL8-241003-1122-348c1508"
34
- RL9: " openhpc-RL9-241003-1122-348c1508"
35
- }
31
+ default = jsondecode (file (" ./cluster_image.json" ))
36
32
}
37
33
38
34
variable "cluster_net" {}
You can’t perform that action at this time.
0 commit comments