Skip to content

Commit

Permalink
Manual deployment workflow for AFQTS
Browse files Browse the repository at this point in the history
  • Loading branch information
shaheislamdfe committed Oct 29, 2024
1 parent 28cba58 commit 32862e3
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ on:
required: true
default: development
type: environment
options:
- development
- test
- preproduction
- production
docker-image:
description: "Docker image tag to deploy (optional)"
required: false
type: string
pull-request-number:
description: "Pull request number (required for review environment)"
required: false
type: string
push:
branches:
- main
Expand Down Expand Up @@ -271,3 +274,24 @@ jobs:
SLACK_WEBHOOK: ${{ steps.key-vault-secrets.outputs.SLACK-WEBHOOK }}
SLACK_COLOR: failure
SLACK_FOOTER: Sent from notify_slack_of_failures job in deploy workflow

deploy_custom:
name: Custom deployment to ${{ inputs.environment }}
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch'
environment:
name: ${{ inputs.environment }}
url: ${{ steps.deploy.outputs.url }}
concurrency: deploy_${{ inputs.environment }}

steps:
- uses: actions/checkout@v4

- uses: ./.github/actions/deploy-environment
id: deploy
with:
environment: ${{ inputs.environment }}
docker-image: ghcr.io/dfe-digital/apply-for-qualified-teacher-status:${{ inputs.docker-image || needs.docker.outputs.image }}
azure-credentials: ${{ secrets.AZURE_CREDENTIALS }}
pull-request-number: ${{ inputs.environment == 'review' && inputs.pull-request-number || '' }}
smoke-test-credentials-required: ${{ inputs.environment == 'production' && 'false' || 'true' }}

0 comments on commit 32862e3

Please sign in to comment.