-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathdeploy_app_via_workflow_dispatch.yml
More file actions
42 lines (36 loc) · 1.12 KB
/
deploy_app_via_workflow_dispatch.yml
File metadata and controls
42 lines (36 loc) · 1.12 KB
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
40
41
42
name: Deploy App via workflow Dispatch
on:
workflow_dispatch:
inputs:
environment:
description: Environment
required: true
tag:
description: Docker tag
required: true
pr_id:
description: Pull Request
required: false
permissions:
id-token: write
env:
DOCKER_REPOSITORY: ghcr.io/dfe-digital/teaching-vacancies
jobs:
deploy-app:
name: Deploy ${{ inputs.tag }} to ${{ inputs.environment }}
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Deploy App to ${{ inputs.environment }} environment
uses: ./.github/actions/deploy/
with:
environment: ${{ inputs.environment }}
tag: ${{ inputs.tag }}
pr_id: ${{ inputs.pr_id }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
azure-subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}