Skip to content

Commit

Permalink
Reomoved paas related code
Browse files Browse the repository at this point in the history
  • Loading branch information
Venkata Challa committed Jan 4, 2024
1 parent eb1f77e commit 65a245f
Show file tree
Hide file tree
Showing 27 changed files with 3 additions and 554 deletions.
3 changes: 1 addition & 2 deletions .github/common_environment.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
DOCKER_REPOSITORY: ghcr.io/dfe-digital/get-teacher-training-adviser-service
DOMAIN: london.cloudapps.digital
APPLICATION: Teacher Training Adviser Service
PAAS_APPLICATION_NAME: get-teacher-training-adviser-service
AZURE_APPLICATION_NAME: get-teacher-training-adviser-service
REVIEW_APPLICATION: review-teacher-training-adviser
SLACK_FAILURE: '#ff0000'
SLACK_SUCCESS: '#00ff00'
SLACK_ICON: https://raw.githubusercontent.com//DFE-Digital/get-into-teaching-api/master/.github/image.png?size=48
SLACK_USERNAME: GiT Workflows
SLACK_FOOTER: Teacher Training Adviser Service

2 changes: 1 addition & 1 deletion .github/workflows/actions/owasp/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ runs:
uses: rtCamp/action-slack-notify@master
env:
SLACK_COLOR: ${{env.SLACK_FAILURE}}
SLACK_MESSAGE: 'Pipeline Failure carrying out OWASP Testing on https://${{env.PAAS_APPLICATION_NAME}}-${{ inputs.environment }}.${{env.DOMAIN}}/'
SLACK_MESSAGE: 'Pipeline Failure carrying out OWASP Testing on https://${{env.AZURE_APPLICATION_NAME}}-${{ inputs.environment }}.${{env.DOMAIN}}/'
SLACK_TITLE: 'Failure: OWSAP Testing has failed on ${{ inputs.environment }}'
SLACK_WEBHOOK: ${{ steps.keyvault-yaml-secret.outputs.SLACK-WEBHOOK }}
45 changes: 0 additions & 45 deletions .github/workflows/destroy.yml

This file was deleted.

27 changes: 0 additions & 27 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,6 @@ development:
$(eval export KEY_VAULT=s146d01-kv)
$(eval export AZURE_SUBSCRIPTION=s146-getintoteachingwebsite-development)

.PHONY: review
review:
$(if $(PR_NUMBER), , $(error Missing environment variable "PR_NUMBER", Please specify a pr number for your review app))
$(eval export PR_NAME=review-teacher-training-adviser-${PR_NUMBER})
$(eval export DEPLOY_ENV=review)
$(eval export TF_VAR_paas_adviser_application_name=${PR_NAME})
$(eval export KEY_VAULT=s146d01-kv)
$(eval export AZURE_SUBSCRIPTION=s146-getintoteachingwebsite-development)
$(eval BACKEND_KEY=-backend-config=key=${PR_NAME}.tfstate)
$(eval export TF_VAR_paas_adviser_route_name=${PR_NAME})

.PHONY: test
test:
$(eval export DEPLOY_ENV=test)
Expand Down Expand Up @@ -82,22 +71,6 @@ ci:
$(eval SKIP_AZURE_LOGIN=true)
$(eval SKIP_CONFIRM=true)

terraform-init: set-azure-account
$(if $(or $(IMAGE_TAG), $(NO_IMAGE_TAG_DEFAULT)), , $(eval export IMAGE_TAG=master))
$(if $(IMAGE_TAG), , $(error Missing environment variable "IMAGE_TAG"))
$(eval export TF_VAR_paas_adviser_docker_image=ghcr.io/dfe-digital/get-teacher-training-adviser-service:$(IMAGE_TAG))

terraform -chdir=terraform/paas init -reconfigure -backend-config=${DEPLOY_ENV}.bk.vars ${BACKEND_KEY}

terraform-plan: terraform-init
terraform -chdir=terraform/paas plan -var-file=${DEPLOY_ENV}.env.tfvars

terraform: terraform-init
terraform -chdir=terraform/paas apply -var-file=${DEPLOY_ENV}.env.tfvars ${AUTO_APPROVE}

terraform-destroy: terraform-init
terraform -chdir=terraform/paas destroy -var-file=${DEPLOY_ENV}.env.tfvars ${AUTO_APPROVE}

delete-state-file:
az storage blob delete --container-name pass-tfstate --delete-snapshots include --account-name s146d01sgtfstate -n ${PR_NAME}.tfstate

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
- Dotenv (managing environment variables)
- Dockerfile
- CI based on GitHub Actions
- Deployment utilising GovUK PAAS
- Deployment utilising Azure

## Running specs, linter(without auto correct) and annotate models and serializers

Expand Down
68 changes: 0 additions & 68 deletions terraform/paas/.terraform.lock.hcl

This file was deleted.

48 changes: 0 additions & 48 deletions terraform/paas/application.tf

This file was deleted.

5 changes: 0 additions & 5 deletions terraform/paas/backend.tf

This file was deleted.

19 changes: 0 additions & 19 deletions terraform/paas/data.tf

This file was deleted.

3 changes: 0 additions & 3 deletions terraform/paas/dev.bk.vars

This file was deleted.

9 changes: 0 additions & 9 deletions terraform/paas/dev.env.tfvars

This file was deleted.

11 changes: 0 additions & 11 deletions terraform/paas/domain.tf

This file was deleted.

24 changes: 0 additions & 24 deletions terraform/paas/network.tf

This file was deleted.

3 changes: 0 additions & 3 deletions terraform/paas/production.bk.vars

This file was deleted.

20 changes: 0 additions & 20 deletions terraform/paas/production.env.tfvars

This file was deleted.

41 changes: 0 additions & 41 deletions terraform/paas/provider.tf

This file was deleted.

2 changes: 0 additions & 2 deletions terraform/paas/review.bk.vars

This file was deleted.

7 changes: 0 additions & 7 deletions terraform/paas/review.env.tfvars

This file was deleted.

Loading

0 comments on commit 65a245f

Please sign in to comment.