Skip to content

Commit

Permalink
Create staging environment
Browse files Browse the repository at this point in the history
  • Loading branch information
slawosz committed Sep 27, 2023
1 parent a4e786a commit 4b1d3ee
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 5 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARM_TEMPLATE_TAG=1.1.10
RG_TAGS={"Product" : "Teacher services cloud"}
REGION=UK South
SERVICE_NAME=teaching-school-hub-finder
SERVICE_SHORT=tshf
SERVICE_SHORT=cpdtsh
DOCKER_REPOSITORY=ghcr.io/dfe-digital/teaching-school-hub-finder

help:
Expand All @@ -13,6 +13,10 @@ help:
development: test-cluster
$(eval include global_config/development.sh)

.PHONY: staging
staging: test-cluster
$(eval include global_config/staging.sh)

production: production-cluster
$(if $(or ${SKIP_CONFIRM}, ${CONFIRM_PRODUCTION}), , $(error Missing CONFIRM_PRODUCTION=yes))
$(eval include global_config/production.sh)
Expand Down
5 changes: 5 additions & 0 deletions terraform/application/config/staging.tfvars.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cluster": "test",
"namespace": "cpd-test",
"environment": "staging"
}
3 changes: 3 additions & 0 deletions terraform/application/config/staging_Terrafile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
aks:
source: "https://github.com/slawosz/terraform-modules"
version: "kubernetes-db-config"
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"hosted_zone": {
"teaching-school-hub-finder.education.gov.uk": {
"front_door_name": "s189p01-tshf-domains-fd",
"resource_group_name": "s189p01-tshf-domains-rg",
"front_door_name": "s189p01-cpdtsh-domains-fd",
"resource_group_name": "s189p01-cpdtsh-domains-rg",
"domains": [
"development"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"hosted_zone": {
"teaching-school-hub-finder.education.gov.uk": {
"front_door_name": "s189p01-tshf-domains-fd",
"resource_group_name": "s189p01-tshf-domains-rg",
"front_door_name": "s189p01-cpdtsh-domains-fd",
"resource_group_name": "s189p01-cpdtsh-domains-rg",
"domains": [
"apex"
],
Expand Down
16 changes: 16 additions & 0 deletions terraform/domains/environment_domains/config/staging.tfvars.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosted_zone": {
"teaching-school-hub-finder.education.gov.uk": {
"front_door_name": "s189p01-cpdtsh-domains-fd",
"resource_group_name": "s189p01-cpdtsh-domains-rg",
"domains": [
"staging"
],
"cached_paths": [
"/assets/*"
],
"environment_short": "dv",
"origin_hostname": "teaching-school-hub-finder-staging.test.teacherservices.cloud"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
domains:
source: "https://github.com/DFE-Digital/terraform-modules"
version: "testing"

0 comments on commit 4b1d3ee

Please sign in to comment.