Skip to content

Commit 83fee39

Browse files
chore(iac): remove unused destroy pipeline and script
Removed the unused `.azuredevops/pipelines/destroy.yml` pipeline file and the corresponding `.github/workflows/stage-4-destroy.yaml` GitHub Actions workflow. Updated the `stage-4-deploy.yaml` workflow to dynamically use the ADO project name. Also, removed the `terraform-destroy` target from the `terraform.mk` Makefile. Refs: DTOSS-12318
1 parent ef94090 commit 83fee39

5 files changed

Lines changed: 4 additions & 124 deletions

File tree

.azuredevops/pipelines/destroy.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/SECURITY.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ If you wish to notify us of a vulnerability via email, please include detailed i
2121

2222
You can reach us at:
2323

24-
- _[ A product team email address ]_
2524
- [cybersecurity@nhs.net](cybersecurity@nhs.net)
2625

2726
### NCSC

.github/workflows/stage-4-deploy.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
env:
4242
ENVIRONMENT: ${{ matrix.environment }}
4343
COMMIT_SHA: ${{ inputs.commit_sha }}
44+
ADO_PROJECT: ${{ github.event.repository.name }}
4445
run: |
4546
source "infrastructure/environments/${ENVIRONMENT}/variables.sh"
4647
@@ -49,10 +50,10 @@ jobs:
4950
--commit-id "${COMMIT_SHA}" \
5051
--name "Deploy to Azure - ${ENVIRONMENT}" \
5152
--org https://dev.azure.com/nhse-dtos \
52-
--project manage-breast-screening-gateway \
53+
--project "${ADO_PROJECT}" \
5354
--parameters commitSHA="${COMMIT_SHA}" environment="${ENVIRONMENT}" pool="${ADO_MANAGEMENT_POOL}" \
5455
--output tsv --query id)
5556
56-
echo "See pipeline run in Azure devops: https://dev.azure.com/nhse-dtos/manage-breast-screening-gateway/_build/results?buildId=${RUN_ID}&view=results"
57+
echo "See pipeline run in Azure devops: https://dev.azure.com/nhse-dtos/${ADO_PROJECT}/_build/results?buildId=${RUN_ID}&view=results"
5758
58-
scripts/bash/wait_ado_pipeline.sh "$RUN_ID" https://dev.azure.com/nhse-dtos manage-breast-screening-gateway
59+
scripts/bash/wait_ado_pipeline.sh "$RUN_ID" https://dev.azure.com/nhse-dtos "${ADO_PROJECT}"

.github/workflows/stage-4-destroy.yaml

Lines changed: 0 additions & 63 deletions
This file was deleted.

scripts/terraform/terraform.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ terraform-plan: terraform-init # Plan Terraform changes - make <env> terraform-p
5252
terraform-apply: terraform-init # Apply Terraform changes - make <env> terraform-apply
5353
terraform -chdir=infrastructure/terraform apply -var-file ../environments/${ENV_CONFIG}/variables.tfvars ${AUTO_APPROVE}
5454

55-
terraform-destroy: terraform-init # Destroy Terraform resources - make <env> terraform-destroy
56-
terraform -chdir=infrastructure/terraform destroy -var-file ../environments/${ENV_CONFIG}/variables.tfvars ${AUTO_APPROVE}
5755

5856
terraform-validate: terraform-init-no-backend # Validate Terraform changes - make <env> terraform-validate
5957
terraform -chdir=infrastructure/terraform validate

0 commit comments

Comments
 (0)