Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Enable maintenance | |
on: | |
push: | |
branches: | |
- 1684-spike-maintenance-page | |
workflow_dispatch: | |
inputs: | |
environment: | |
required: true | |
type: string | |
options: | |
- review | |
- qa | |
jobs: | |
enable-maintenance: | |
name: Enable maintenance app | |
runs-on: ubuntu-latest | |
environment: review | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build and push docker image | |
id: build-image | |
uses: DFE-Digital/github-actions/build-docker-image@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
dockerfile-path: service_unavailable_page/Dockerfile | |
docker-repository: ghcr.io/dfe-digital/apply-teacher-training-maintenance | |
context: maintenance_page | |
- uses: azure/login@v1 | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS }} | |
# - name: Set up kubelogin for non-interactive login | |
# uses: azure/use-kubelogin@v1 | |
# with: | |
# kubelogin-version: 'v0.0.34' | |
# - uses: azure/aks-set-context@v3 | |
# with: | |
# resource-group: s189t01-tsc-ts-rg | |
# cluster-name: s189t01-tsc-test-aks | |
# use-kubelogin: true | |
# admin: 'false' | |
- name: Set ARM and kubelogin environment | |
uses: DFE-Digital/github-actions/set-kubelogin-environment@master | |
with: | |
azure-credentials: ${{ secrets.AZURE_CREDENTIALS }} | |
- name: Deploy maintenance app | |
run: make review_aks maintenance-fail-over PR_NUMBER=1 | |
env: | |
MAINTENANCE_IMAGE_TAG: ${{steps.build-image.outputs.tag}} |