Skip to content

Set maintenance mode #14

Set maintenance mode

Set maintenance mode #14

Workflow file for this run

name: "Set maintenance mode"
on:
workflow_dispatch:
inputs:
environment:
required: true
type: choice
options:
- migration
- 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/npq-registration-maintenance
github-token: ${{ secrets.GITHUB_TOKEN }}