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 34d4b42
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 9 deletions.
20 changes: 11 additions & 9 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,17 +22,17 @@ jobs:
set-maintenance-mode:
name: Set maintenance mode
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
environment: review

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Enable or disable maintenance mode
uses: DFE-Digital/github-actions/maintenance@master
with:
azure-credentials: ${{ secrets.AZURE_CREDENTIALS}}
environment: ${{ inputs.environment }}
mode: ${{ inputs.mode }}
docker-repository: ghcr.io/dfe-digital/claim-additional-payments-for-teaching-maintenance
github-token: ${{ secrets.GITHUB_TOKEN }}
# - name: Enable or disable maintenance mode
# uses: DFE-Digital/github-actions/maintenance@master
# with:
# azure-credentials: ${{ secrets.AZURE_CREDENTIALS}}
# environment: review
# mode: enable
# docker-repository: ghcr.io/dfe-digital/claim-additional-payments-for-teaching-maintenance
# github-token: ${{ secrets.GITHUB_TOKEN }}
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 34d4b42

Please sign in to comment.