Skip to content

Commit ffd856a

Browse files
committed
Add manual deploy workflow
1 parent 402ae6e commit ffd856a

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Manual deploy
2+
concurrency: build_and_deploy_v2_${{ github.ref_name }} # ensures that the job waits for any deployments triggered by the build workflow to finish
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
environment:
8+
description: Environment to deploy to
9+
required: true
10+
type: choice
11+
default: qa
12+
options:
13+
- qa
14+
- staging
15+
- production
16+
image_tag:
17+
description: Docker image tag to be deployed
18+
required: true
19+
20+
permissions:
21+
id-token: write
22+
23+
jobs:
24+
deploy:
25+
name: ${{ github.event.inputs.environment }} deployment
26+
runs-on: ubuntu-latest
27+
environment:
28+
name: ${{ github.event.inputs.environment }}
29+
url: ${{ steps.deploy_app_v2.outputs.deploy-url }}
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
34+
- name: Deploy App to ${{ github.event.inputs.environment }}
35+
id: deploy_app_v2
36+
uses: ./.github/actions/deploy/
37+
with:
38+
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
39+
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
40+
azure-subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
41+
environment: ${{ github.event.inputs.environment }}
42+
tag: ${{ github.event.inputs.image_tag }}

0 commit comments

Comments
 (0)