Skip to content

Commit a60dbf4

Browse files
committed
only run trivy scan on image bumps
1 parent 3fbc9e9 commit a60dbf4

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

.github/workflows/trivyscan.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- ci/nightly-builds
7+
paths:
8+
- 'environments/.stackhpc/terraform/cluster_image.json'
79

810
jobs:
911
scan:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"cluster_image": {
3+
"RL8": "openhpc-RL8-241003-1241-a256bce2",
4+
"RL9": "openhpc-RL9-241003-1241-a256bce2",
5+
"RL9-cuda": "openhpc-cuda-RL9-241003-1242-a256bce2"
6+
}
7+
}

environments/.stackhpc/terraform/cluster_image.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

environments/.stackhpc/terraform/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ 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 = jsondecode(file("./cluster_image.json"))
3231
}
3332

3433
variable "cluster_net" {}

0 commit comments

Comments
 (0)