File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 46
46
with :
47
47
ssh-private-key : ${{ secrets.INFRA_TERRAFORM_MODULES_SSH_PRIV_KEY }}
48
48
49
+ - name : append secret to secret.auto.tfvars
50
+ working-directory : ./${{ env.WORKING_DIR }}
51
+ run : |
52
+ ./append_secret.py CHROME_BIN /opt/google/chrome/google-chrome
53
+ ./append_secret.py AUTHORITY "${{ secrets.AUTHORITY }}"
54
+ ./append_secret.py CLIENT_ID "${{ secrets.CLIENT_ID }}"
55
+ ./append_secret.py SCOPES "${{ secrets.SCOPES }}"
56
+ ./append_secret.py STACK_EXCHANGE_ID "${{ secrets.STACK_EXCHANGE_ID }}"
57
+ ./append_secret.py STACK_EXCHANGE_ACCESS_TOKEN "${{ secrets.STACK_EXCHANGE_ACCESS_TOKEN }}"
58
+ ./append_secret.py AZURE_APP_CONFIGURATION_CONNECTION_STRING "${{ secrets.AZURE_APP_CONFIGURATION_CONNECTION_STRING }}"
59
+
60
+
49
61
- name : Terraform Init
50
62
working-directory : ${{ env.WORKING_DIR }}
51
63
run : terraform init
Original file line number Diff line number Diff line change 33
33
- name : build docker
34
34
run : make build
35
35
36
+ - name : Inject Secrets
37
+ env :
38
+ SCOPES : ${{ secrets.SCOPES }}
39
+ CLIENT_ID : ${{ secrets.CLIENT_ID }}
40
+ AUTHORITY : ${{ secrets.AUTHORITY }}
41
+ STACK_EXCHANGE_ID : ${{ secrets.STACK_EXCHANGE_ID }}
42
+ STACK_EXCHANGE_ACCESS_TOKEN : ${{ secrets.STACK_EXCHANGE_ACCESS_TOKEN }}
43
+ AZURE_APP_CONFIGURATION_CONNECTION_STRING : ${{ secrets.AZURE_APP_CONFIGURATION_CONNECTION_STRING }}
44
+ run : |
45
+ chmod +x ./scripts/populate-keys.sh
46
+ sh ./scripts/populate-keys.sh
47
+
36
48
- name : append secret to secret.auto.tfvars
37
49
working-directory : ./${{ env.WORKING_DIR }}
38
50
run : |
71
83
72
84
- name : Terraform Plan Stage
73
85
id : plan-stage
74
- run : terraform plan -var-file=${{ env.TF_WORKSPACE }}.tfvars -var image_tag=latest -no-color
86
+ run : terraform plan -var-file=${{ env.TF_WORKSPACE }}.tfvars -var image_tag=latest -no-color
75
87
continue-on-error : true
76
88
working-directory : ./${{ env.WORKING_DIR }}
77
89
env :
You can’t perform that action at this time.
0 commit comments