Skip to content

Set maintenance mode #15

Set maintenance mode

Set maintenance mode #15

Workflow file for this run

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: 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 }}