File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 2
2
name : Build fat image
3
3
' on ' :
4
4
workflow_dispatch :
5
+ inputs :
6
+ ci_cloud :
7
+ description : ' Select the CI_CLOUD'
8
+ required : true
9
+ type : choice
10
+ options :
11
+ - LEAFCLOUD
12
+ - ARCUS
13
+ - SMS
5
14
concurrency :
6
15
group : ${{ github.ref }}-{{ matrix.os_version }}-{{ matrix.build }} # to branch/PR + OS + build
7
16
cancel-in-progress : true
25
34
env :
26
35
ANSIBLE_FORCE_COLOR : True
27
36
OS_CLOUD : openstack
28
- CI_CLOUD : ${{ vars.CI_CLOUD }}
37
+ CI_CLOUD : ${{ github.event.inputs.ci_cloud }}
29
38
steps :
30
39
- uses : actions/checkout@v2
31
40
37
46
run : |
38
47
set -x
39
48
mkdir ~/.ssh
40
- echo "${{ secrets[format('{0}_SSH_KEY', vars .CI_CLOUD)] }}" > ~/.ssh/id_rsa
49
+ echo "${{ secrets[format('{0}_SSH_KEY', env .CI_CLOUD)] }}" > ~/.ssh/id_rsa
41
50
chmod 0600 ~/.ssh/id_rsa
42
51
shell : bash
43
52
51
60
- name : Write clouds.yaml
52
61
run : |
53
62
mkdir -p ~/.config/openstack/
54
- echo "${{ secrets[format('{0}_CLOUDS_YAML', vars .CI_CLOUD)] }}" > ~/.config/openstack/clouds.yaml
63
+ echo "${{ secrets[format('{0}_CLOUDS_YAML', env .CI_CLOUD)] }}" > ~/.config/openstack/clouds.yaml
55
64
shell : bash
56
65
57
66
- name : Setup environment
66
75
. environments/.stackhpc/activate
67
76
cd packer/
68
77
packer init .
69
- PACKER_LOG=1 packer build -on-error=${{ vars.PACKER_ON_ERROR }} -only=${{ matrix.build }} -var-file=$PKR_VAR_environment_root/${{ vars .CI_CLOUD }}.pkrvars.hcl openstack.pkr.hcl
78
+ PACKER_LOG=1 packer build -on-error=${{ vars.PACKER_ON_ERROR }} -only=${{ matrix.build }} -var-file=$PKR_VAR_environment_root/${{ env .CI_CLOUD }}.pkrvars.hcl openstack.pkr.hcl
70
79
env :
71
80
PKR_VAR_os_version : ${{ matrix.os_version }}
72
81
You can’t perform that action at this time.
0 commit comments