Skip to content

Commit 2c255d1

Browse files
authored
Merge pull request #121 from NHSDigital/feature/terb-ELID-131-automated-deployment-networking-api
Feature/terb elid 131 automated deployment networking api
2 parents 3f1839e + 976913f commit 2c255d1

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/workflows/cicd-2-publish.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
branches:
1010
- main
1111

12+
concurrency:
13+
group: terraform-dev
14+
cancel-in-progress: false
15+
1216
jobs:
1317
metadata:
1418
name: "Set CI/CD metadata"

.github/workflows/cicd-3-deploy.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
name: "CI/CD deploy"
55

6+
concurrency:
7+
group: terraform-deploy-${{ github.event.inputs.environment }}
8+
cancel-in-progress: false
9+
610
on:
711
workflow_dispatch:
812
inputs:

infrastructure/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ terraform-workspace-delete: guard-env guard-stack
3535

3636
# Runs a specified Terraform command (e.g., plan, apply) for the stack and environment.
3737
terraform: guard-env guard-stack guard-tf-command terraform-init terraform-workspace
38-
terraform -chdir=./stacks/$(stack) $(tf-command) $(args) $(if $(filter $(tf-command),init),,--parallelism=30)
38+
terraform -chdir=./stacks/$(stack) $(tf-command) $(args) \
39+
$(if $(filter init,$(tf-command)),,--parallelism=30) \
40+
$(if $(filter apply,$(tf-command)),-auto-approve)
3941
rm -f ./terraform_outputs_$(stack).json || true
4042
mkdir -p ./build
4143
terraform -chdir=./stacks/$(stack) output -json > ./build/terraform_outputs_$(stack).json

0 commit comments

Comments
 (0)