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 4646 with :
4747 ssh-private-key : ${{ secrets.INFRA_TERRAFORM_MODULES_SSH_PRIV_KEY }}
4848
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+
4961 - name : Terraform Init
5062 working-directory : ${{ env.WORKING_DIR }}
5163 run : terraform init
Original file line number Diff line number Diff line change 3333 - name : build docker
3434 run : make build
3535
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+
3648 - name : append secret to secret.auto.tfvars
3749 working-directory : ./${{ env.WORKING_DIR }}
3850 run : |
7183
7284 - name : Terraform Plan Stage
7385 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
7587 continue-on-error : true
7688 working-directory : ./${{ env.WORKING_DIR }}
7789 env :
You can’t perform that action at this time.
0 commit comments