Skip to content

Commit 5dbdefc

Browse files
committed
bump image and test trivy scan
1 parent a256bce commit 5dbdefc

File tree

3 files changed

+12
-26
lines changed

3 files changed

+12
-26
lines changed

.github/workflows/trivyscan.yml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,37 +8,22 @@ on:
88
jobs:
99
scan:
1010
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
1212
cancel-in-progress: true
1313
runs-on: ubuntu-latest
1414
strategy:
1515
fail-fast: false
1616
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"]
2618
env:
27-
BUILD: ${{ matrix.build }}-${{ matrix.os_version }}
19+
JSON_PATH: environments/.stackhpc/terraform/cluster_image.json
2820

2921
steps:
30-
- name: Download image details artifact
31-
uses: actions/download-artifact@v4
32-
with:
33-
name: image-details-${{ env.BUILD }}
34-
35-
- name: Use the downloaded artifact
36-
id: manifest
22+
- name: Parse image name json
23+
id: mainfest
3724
run: |
38-
IMAGE_ID=$(cat image-id.txt)
39-
IMAGE_NAME=$(cat image-name.txt)
25+
IMAGE_NAME=$(jq --arg version "${{ matrix.build }}" -r '.[$version]' "${{ env.JSON_PATH }}")
4026
echo "image-name=${IMAGE_NAME}" >> "$GITHUB_OUTPUT"
41-
echo "image-id=${IMAGE_ID}" >> "$GITHUB_OUTPUT"
4227
4328
- name: Download image
4429
run: |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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+
}

environments/.stackhpc/terraform/main.tf

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,7 @@ variable "os_version" {
2828
variable "cluster_image" {
2929
description = "single image for all cluster nodes, keyed by os_version - a convenience for CI"
3030
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"))
3632
}
3733

3834
variable "cluster_net" {}

0 commit comments

Comments
 (0)