Skip to content

Commit 1823878

Browse files
committed
Fix path to extra_vars file
1 parent 9902b1a commit 1823878

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ jobs:
2020
if: github.repository == 'stackhpc/caas-slurm-appliance'
2121
concurrency: ${{ github.ref }}
2222
runs-on: ubuntu-20.04
23-
environment:
24-
name: arcus
2523
env:
2624
ANSIBLE_FORCE_COLOR: True
2725
OS_CLOUD: openstack
2826
OS_CLIENT_CONFIG_FILE: ${{ github.workspace }}/clouds.yaml
27+
EXTRA_VARS_FILE: .github/extra_vars/arcus.yml
2928
steps:
3029
- uses: actions/checkout@v2
3130

@@ -45,7 +44,7 @@ jobs:
4544
source venv/bin/activate
4645
ansible-playbook \
4746
-i image-build/hosts \
48-
-e @.github/extra_vars/${{ inputs.environment }}.yml \
47+
-e @${EXTRA_VARS_FILE} \
4948
-e '{"write_cluster_image_uuid_file": true}' \
5049
image-build.yml
5150
echo "CLUSTER_IMAGE=$(cat cluster_image_uuid.txt)" >> $GITHUB_OUTPUT
@@ -57,7 +56,7 @@ jobs:
5756
source venv/bin/activate
5857
ansible-playbook \
5958
-i image-build/hosts \
60-
-e @.github/extra_vars/${{ inputs.environment }}.yml \
59+
-e @${EXTRA_VARS_FILE} \
6160
-e cluster_state=absent \
6261
image-build.yml
6362
if: always()
@@ -68,7 +67,7 @@ jobs:
6867
source venv/bin/activate
6968
ansible-playbook \
7069
-i image-build/hosts \
71-
-e @.github/extra_vars/${{ inputs.environment }}.yml \
70+
-e @${EXTRA_VARS_FILE} \
7271
-e cluster_image=${{ steps.build.outputs.CLUSTER_IMAGE }} \
7372
slurm-infra.yml
7473
if: success()
@@ -78,7 +77,7 @@ jobs:
7877
source venv/bin/activate
7978
ansible-playbook \
8079
-i image-build/hosts \
81-
-e @.github/extra_vars/${{ inputs.environment }}.yml \
80+
-e @${EXTRA_VARS_FILE} \
8281
-e cluster_image=${{ steps.build.outputs.CLUSTER_IMAGE }} \
8382
-e cluster_state=absent \
8483
slurm-infra.yml

0 commit comments

Comments
 (0)