-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (35 loc) · 991 Bytes
/
maintenance.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Set maintenance mode
on:
workflow_dispatch:
inputs:
environment:
required: true
type: choice
options:
- test
- production
mode:
required: true
type: choice
options:
- enable
- disable
jobs:
set-maintenance-mode:
name: Set maintenance mode
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: set executable files
shell: bash
run: chmod +x ./maintenance_page/scripts/*.sh
- 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/apply-for-qualified-teacher-status-maintenance
github-token: ${{ secrets.GITHUB_TOKEN }}