mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 11:59:11 +00:00
use format to not need concatenation in dynamic secret name
This commit is contained in:
parent
bbdea9c074
commit
a3778c7a1e
1 changed files with 3 additions and 2 deletions
3
.github/workflows/deploy.yml
vendored
3
.github/workflows/deploy.yml
vendored
|
@ -124,7 +124,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
sh -c 'echo '$TF_DATA' | jq > actions.tfvars.auto.json' >/dev/null 2>&1
|
sh -c 'echo '$TF_DATA' | jq > actions.tfvars.auto.json' >/dev/null 2>&1
|
||||||
env:
|
env:
|
||||||
TF_DATA: ${{ secrets['TF_DATA_'+github.event.inputs.environment] }}
|
TF_DATA: ${{ secrets[format('TF_DATA_{0}', github.event.inputs.environment)] }}
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
terraform plan \
|
terraform plan \
|
||||||
|
@ -136,4 +136,5 @@ jobs:
|
||||||
terraform apply \
|
terraform apply \
|
||||||
--var-file variables/global.tfvars \
|
--var-file variables/global.tfvars \
|
||||||
--var-file variables/${{github.event.inputs.environment}}.tfvars \
|
--var-file variables/${{github.event.inputs.environment}}.tfvars \
|
||||||
|
-auto-approve \
|
||||||
deployment.tfplan
|
deployment.tfplan
|
||||||
|
|
Loading…
Add table
Reference in a new issue