-
Notifications
You must be signed in to change notification settings - Fork 9
39 lines (36 loc) · 1.09 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Deploy
concurrency: build_and_deploy_${{ github.ref_name }}
on:
workflow_dispatch:
inputs:
environment:
description: Environment to deploy to
required: true
type: choice
default: qa
options:
- qa
- staging
- sandbox
- production
sha:
description: Commit sha to be deployed
required: true
jobs:
deploy:
name: Deployment to ${{ github.event.inputs.environment }}
environment:
name: ${{ github.event.inputs.environment }}
url: ${{ steps.deploy_app.outputs.deploy-url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy App to ${{ github.event.inputs.environment }}
id: deploy_app
uses: ./.github/actions/deploy/
with:
azure-credentials: ${{ secrets[format('AZURE_CREDENTIALS_{0}', github.event.inputs.environment)] }}
environment: ${{ github.event.inputs.environment }}
sha: ${{ github.event.inputs.sha }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}