Skip to content

Set maintenance mode #6

Set maintenance mode

Set maintenance mode #6

Workflow file for this run

name: Set maintenance mode
on:
workflow_dispatch:
inputs:
environment:
required: true
type: choice
options:
- staging
- 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@oidc-ga
with:
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
azure-subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
environment: ${{ inputs.environment }}
mode: ${{ inputs.mode }}
docker-repository: ghcr.io/dfe-digital/itt-mentor-services-maintenance
github-token: ${{ secrets.GITHUB_TOKEN }}