File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4949 && 'arn:aws:iam::820242920762:role/GithubDeployMavisAndInfrastructure'
5050 || 'arn:aws:iam::393416225559:role/GithubDeployMavisAndInfrastructure' }}
5151 terraform-working-directory : terraform/app
52- terraform-target-options : ${{ inputs.server_types == 'web'
53- && '-target=aws_ecs_task_definition.task_definition -target=aws_s3_object.appspec_object'
54- || inputs.server_types == 'good-job'
55- && '-target=module.good_job_service.aws_ecs_task_definition.this'
56- || '-target=aws_ecs_task_definition.task_definition -target=aws_s3_object.appspec_object -target=module.good_job_service.aws_ecs_task_definition.this' }}
5752
5853jobs :
5954 plan-changes :
9186 working-directory : ${{ env.terraform-working-directory }}
9287 run : |
9388 terraform init -backend-config="env/${{ inputs.environment }}-backend.hcl" -upgrade
94- terraform plan ${{ env.terraform-target-options }} -var-file="env/${{ inputs.environment }}.tfvars" \
89+ terraform plan -var-file="env/${{ inputs.environment }}.tfvars" \
9590 -var="image_digest=$DIGEST" -out=${{ runner.temp }}/tfplan | tee ${{ runner.temp }}/tf_stdout
9691 - name : Validate the changes
9792 run : |
@@ -197,7 +192,7 @@ jobs:
197192 aws-region : eu-west-2
198193 - name : Install AWS CLI
199194 run : sudo snap install --classic aws-cli
200- - name : Trigger ECR Deployment
195+ - name : Trigger ECS Deployment
201196 run : |
202197 source ${{ runner.temp }}/artifact/DEPLOYMENT_ENVS
203198 echo "$ecs_variables"
You can’t perform that action at this time.
0 commit comments