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:
- test
- production
mode:
required: true
type: choice
options:
- enable
- disable
jobs:
set-maintenance-mode:
name: Set maintenance mode
runs-on: ubuntu-latest
permissions:
id-token: write
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-client-id: ${{ secrets.AZURE_CLIENT_ID }}
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
azure-subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
environment: ${{ inputs.environment }}
mode: ${{ inputs.mode }}
docker-repository: ghcr.io/dfe-digital/claim-additional-payments-for-teaching-maintenance
github-token: ${{ secrets.GITHUB_TOKEN }}