File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 76
76
description : Git ref to checkout (convenience for external CI)
77
77
type : string
78
78
default : ${{ github.ref }}
79
+ user-ssh-public-key :
80
+ description : User's SSH public key to access AIOs
81
+ type : string
79
82
secrets :
80
83
KAYOBE_VAULT_PASSWORD :
81
84
required : true
@@ -262,6 +265,10 @@ jobs:
262
265
cat terraform/aio/id_rsa >> $GITHUB_OUTPUT
263
266
echo "EOF" >> $GITHUB_OUTPUT
264
267
268
+ - name : Add user's SSH key to authorized_keys
269
+ run : |
270
+ echo "${{ inputs.user-ssh-public-key }} << EOF" >> ~/.ssh/authorized_keys
271
+
265
272
# The same tag may be reused (e.g. stackhpc/yoga), so ensure we have the latest image.
266
273
- name : Pull previous Kayobe image
267
274
run : |
@@ -481,6 +488,7 @@ jobs:
481
488
if : ${{ !cancelled() && (steps.tempest.outcome == 'success' || steps.stackhpc-cloud-tests.outcome == 'success' || steps.diagnostics.outcome == 'success') }}
482
489
483
490
- name : Fail if any tests failed
491
+ id : test-result
484
492
run : |
485
493
rc=0
486
494
if [[ $(wc -l < tempest-artifacts/failed-tests) -ne 0 ]]; then
@@ -495,6 +503,11 @@ jobs:
495
503
fi
496
504
exit $rc
497
505
506
+ - name : Break on failure
507
+ run : |
508
+ sleep 360m
509
+ if : steps.test-result.outcome != 'success'
510
+
498
511
- name : Destroy
499
512
run : terraform destroy -auto-approve
500
513
working-directory : ${{ github.workspace }}/terraform/aio
Original file line number Diff line number Diff line change @@ -215,6 +215,7 @@ jobs:
215
215
OS_CLOUD : openstack
216
216
if : ${{ needs.check-changes.outputs.aio == 'true' }}
217
217
upgrade : true
218
+ user-ssh-public-key : " ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDM53flpem/kWEAbXNS+57THFUSGMP14o8Lqpny2DVDgmt9yuP66On6HUgnrYusekcTlW99jz91JHXvUGK/6QXgIi51LEZi7juclnIE0LB9JhaMW3UWZwp2Voc8k9EXFR4fx8z2GMBRS10LriYdcVptOddba6+TK3gSA7dOiA4HE0VyZbMGcdpcghPJC5RcI+KMDI5HtAJMyFUhXkTF7vLfEgbNzURjRmW0jfKfWckWE0SvSM4I8Ub1QQLFmuPDQHfXi42OH6GqKb1S5OjTVDKngv5NMjPkoEwiQj9w7FDjuCjoJXvYJc6vi2TQYqDNyGijjwAj/4iiKcS589X9Utzn3yvhilmIlUmlpn8Be1MSI2HM1pMNGgGhm+axwmZCEsb6DrAWtctUaYDgg2q71BEw8f+aVHMKNIT4AB6caKak7oPygt/eCcAXKycPxaWM3qpoPtaR/hYpZBjycWiA7qi52AERcB7nYos2AP/e2rKJJsrBuXSopZobF+fHtYYs/Os="
218
219
secrets : inherit
219
220
if : ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
220
221
You can’t perform that action at this time.
0 commit comments