Skip to content

Commit

Permalink
review app testing
Browse files Browse the repository at this point in the history
  • Loading branch information
RMcVelia committed Nov 21, 2024
1 parent 98bbf72 commit 937d193
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/maintenance.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Set maintenance mode

on:
push:
branches: [add-maintenance-page]
workflow_dispatch:
inputs:
environment:
Expand All @@ -20,7 +22,7 @@ jobs:
set-maintenance-mode:
name: Set maintenance mode
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
environment: review

steps:
- name: Checkout
Expand All @@ -30,7 +32,7 @@ jobs:
uses: DFE-Digital/github-actions/maintenance@master
with:
azure-credentials: ${{ secrets.AZURE_CREDENTIALS}}
environment: ${{ inputs.environment }}
mode: ${{ inputs.mode }}
environment: review
mode: enable
docker-repository: ghcr.io/dfe-digital/claim-additional-payments-for-teaching-maintenance
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ help:

.PHONY: review
review: test-cluster
$(if ${PR_NUMBER},,$(error Missing PR_NUMBER))
$(eval export PR_NUMBER=3419)
$(eval ENVIRONMENT=review-${PR_NUMBER})
$(eval export TF_VAR_environment=${ENVIRONMENT})
$(eval include global_config/review.sh)
Expand Down
16 changes: 16 additions & 0 deletions maintenance_page/manifests/review/ingress_internal_to_main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: claim-additional-payments-for-teaching-review-3419-web.test.teacherservices.cloud
spec:
ingressClassName: nginx
rules:
- host: claim-additional-payments-for-teaching-review-3419-web.test.teacherservices.cloud
http:
paths:
- pathType: ImplementationSpecific
backend:
service:
name: claim-additional-payments-for-teaching-review-3419-web
port:
number: 80
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: claim-additional-payments-for-teaching-review-3419-web.test.teacherservices.cloud
spec:
ingressClassName: nginx
rules:
- host: claim-additional-payments-for-teaching-review-3419-web.test.teacherservices.cloud
http:
paths:
- pathType: ImplementationSpecific
backend:
service:
name: claim-additional-payments-for-teaching-maintenance
port:
number: 80
16 changes: 16 additions & 0 deletions maintenance_page/manifests/review/ingress_maintenance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: claim-additional-payments-for-teaching-maintenance.test.teacherservices.cloud
spec:
ingressClassName: nginx
rules:
- host: claim-additional-payments-for-teaching-maintenance.test.teacherservices.cloud
http:
paths:
- pathType: ImplementationSpecific
backend:
service:
name: claim-additional-payments-for-teaching-maintenance
port:
number: 80
16 changes: 16 additions & 0 deletions maintenance_page/manifests/review/ingress_temp_to_main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: claim-additional-payments-for-teaching-temp.test.teacherservices.cloud
spec:
ingressClassName: nginx
rules:
- host: claim-additional-payments-for-teaching-temp.test.teacherservices.cloud
http:
paths:
- pathType: ImplementationSpecific
backend:
service:
name: claim-additional-payments-for-teaching-review-3419-web
port:
number: 80

0 comments on commit 937d193

Please sign in to comment.