File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,10 @@ jobs:
22
22
run : |
23
23
set -x
24
24
mkdir ~/.ssh
25
- echo "${BASTION_SSH_KEY }" > ~/.ssh/id_rsa
25
+ echo "${{ secrets[format('{0}_SSH_KEY', vars.CI_CLOUD)] } }" > ~/.ssh/id_rsa
26
26
chmod 0600 ~/.ssh/id_rsa
27
- env :
28
- ARCUS_SSH_KEY : ${{ secrets.ARCUS_SSH_KEY }}
29
- SMS_SSH_KEY : ${{ secrets.SMS_SSH_KEY }}
30
- BASTION_SSH_KEY : ${{ vars.CI_CLOUD }}_SSH_KEY
31
-
27
+ shell : bash
28
+
32
29
- name : Add bastion's ssh key to known_hosts
33
30
run : cat environments/.stackhpc/bastion_fingerprints >> ~/.ssh/known_hosts
34
31
shell : bash
46
43
- name : Write clouds.yaml
47
44
run : |
48
45
mkdir -p ~/.config/openstack/
49
- echo "${CLOUDS_YAML }" > ~/.config/openstack/clouds.yaml
46
+ echo "${{ secrets[format('{0}_CLOUDS_YAML', vars.CI_CLOUD)] } }" > ~/.config/openstack/clouds.yaml
50
47
shell : bash
51
- env :
52
- ARCUS_CLOUDS_YAML : ${{ secrets.ARCUS_CLOUDS_YAML }}
53
- SMS_CLOUDS_YAML : ${{ secrets.SMS_CLOUDS_YAML }}
54
- CLOUDS_YAML : ${{ vars.CI_CLOUD }}_CLOUDS_YAML }}
55
-
48
+
56
49
- name : Setup environment-specific inventory/terraform inputs
57
50
run : |
58
51
. venv/bin/activate
You can’t perform that action at this time.
0 commit comments