Skip to content

Commit 307c119

Browse files
committed
Set uniquely cluster_name for each workflow instance
1 parent 347cfac commit 307c119

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/extra_vars/arcus.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Cluster instance vars
2-
cluster_name: "caas-ci"
32
cluster_id: "{{ cluster_name }}"
43
openhpc_slurm_partitions:
54
- name: "small"

.github/workflows/build-image-deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
-i image-build/hosts \
5050
-e @${EXTRA_VARS_FILE} \
5151
-e '{"write_cluster_image_uuid_file": true}' \
52+
-e image_build_cluster_id="image-build-${GITHUB_SHA::7}" \
5253
image-build.yml
5354
echo "CLUSTER_IMAGE=$(cat cluster_image_uuid.txt)" >> $GITHUB_OUTPUT
5455
env:
@@ -61,6 +62,7 @@ jobs:
6162
-i image-build/hosts \
6263
-e @${EXTRA_VARS_FILE} \
6364
-e cluster_state=absent \
65+
-e image_build_cluster_id="image-build-${GITHUB_SHA::7}" \
6466
image-build.yml
6567
if: always()
6668

@@ -72,6 +74,7 @@ jobs:
7274
-i image-build/hosts \
7375
-e @${EXTRA_VARS_FILE} \
7476
-e cluster_image=${{ steps.build.outputs.CLUSTER_IMAGE }} \
77+
-e cluster_name="caas-ci-${GITHUB_SHA::7}" \
7578
slurm-infra.yml
7679
if: success()
7780

@@ -83,6 +86,7 @@ jobs:
8386
-e @${EXTRA_VARS_FILE} \
8487
-e cluster_image=${{ steps.build.outputs.CLUSTER_IMAGE }} \
8588
-e cluster_state=absent \
89+
-e cluster_name="caas-ci-${GITHUB_SHA::7}" \
8690
slurm-infra.yml
8791
if: |
8892
( failure() || cancelled() ) &&

0 commit comments

Comments
 (0)