Skip to content

Commit 1d9e28d

Browse files
committed
move output image_name declaration into build blocks
1 parent 8e71d6a commit 1d9e28d

File tree

3 files changed

+6
-146
lines changed

3 files changed

+6
-146
lines changed

.github/workflows/fatimage-cron.yml

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

.github/workflows/fatimage.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ jobs:
6464
. venv/bin/activate
6565
. environments/.stackhpc/activate
6666
67+
- name: rename latest rocky image
68+
6769
- name: Build fat image with packer
6870
id: packer_build
6971
run: |

packer/openstack.pkr.hcl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,25 +186,27 @@ source "openstack" "openhpc" {
186186
# Output image:
187187
image_disk_format = "qcow2"
188188
image_visibility = var.image_visibility
189-
image_name = "${source.name}-${var.os_version}"
190-
# -${local.timestamp}-${substr(local.git_commit, 0, 8)}"
189+
191190
}
192191

193192
build {
194193

195194
# latest fat image:
196195
source "source.openstack.openhpc" {
197196
name = "rocky-latest"
197+
image_name = "${source.name}-${var.os_version}"
198198
}
199199

200200
# OFED fat image:
201201
source "source.openstack.openhpc" {
202202
name = "openhpc"
203+
image_name = "${source.name}-${var.os_version}-${local.timestamp}-${substr(local.git_commit, 0, 8)}"
203204
}
204205

205206
# CUDA fat image:
206207
source "source.openstack.openhpc" {
207208
name = "openhpc-cuda"
209+
image_name = "${source.name}-${var.os_version}-${local.timestamp}-${substr(local.git_commit, 0, 8)}"
208210
}
209211

210212
# Extended site-specific image, built on fat image:

0 commit comments

Comments
 (0)