We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80a6545 commit 72ffd44Copy full SHA for 72ffd44
1 file changed
.github/workflows/destroy-deployment.yml
@@ -10,6 +10,14 @@ on:
10
options:
11
- staging
12
- production
13
+ active_deployment:
14
+ type: choice
15
+ description: Which deployment is currently active (defaults to green)
16
+ required: false
17
+ default: green
18
+ options:
19
+ - blue
20
+ - green
21
22
jobs:
23
destroy:
@@ -74,6 +82,6 @@ jobs:
74
82
cat <<< "$TERRAFORM_VARS" > tfvars.json
75
83
active_deployment=$(terraform output -raw active_deployment)
76
84
deployment_state=$(terraform output -raw deployment_state)
77
- terraform destroy -var-file=tfvars.json -auto-approve -var="DEPLOYMENT_STATE=$deployment_state" -var="ACTIVE_DEPLOYMENT=$active_deployment"
85
+ terraform destroy -var-file=tfvars.json -auto-approve -var="DEPLOYMENT_STATE=single" -var="ACTIVE_DEPLOYMENT=green"
78
86
env:
79
87
TERRAFORM_VARS: ${{ vars.TERRAFORM_VARS }}
0 commit comments