Skip to content

Added workflow for manual deployments #911

Added workflow for manual deployments

Added workflow for manual deployments #911

Workflow file for this run

concurrency: build_and_deploy_${{ github.ref_name }}
name: Deploy to AKS cluster Test
on:
push:
branches: 1717-ittms-manual-deployment-workflow
workflow_dispatch:
inputs:
environment:
description: Environment to deploy to
required: true
type: choice
default: qa
options:
- qa
- review
sha:
description: Commit sha to be deployed
required: true
jobs:
deploy:

Check failure on line 21 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 21
name: ${{ github.event.inputs.environment }} deployment
environment:
name: ${{ github.event.inputs.environment }}
url: ${{ steps.deploy_app.outputs.deploy-url }}
concurrency: deploy_all # ensures that the job waits for any deployments triggered by the build workflow to finish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Deploy App to ${{ github.event.inputs.environment }}
id: deploy_app
uses: ./.github/actions/deploy-environment/
with:
azure-credentials: ${{ secrets[format('AZURE_CREDENTIALS_{0}', github.event.inputs.environment)] }}
environment: ${{ github.event.inputs.environment }}
docker-image: ${{ github.event.inputs.sha }}