-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (33 loc) · 1009 Bytes
/
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
name: TDR Deploy File Format Lambda
on:
workflow_dispatch:
inputs:
environment:
type: choice
description: 'Environment'
required: true
options:
- intg
- staging
- prod
default: 'intg'
to-deploy:
description: 'Version to deploy'
required: true
run-name: Deploying File Format Lambda ${{inputs.to-deploy}} to ${{inputs.environment}}
permissions:
id-token: write
contents: write
jobs:
deploy:
uses: nationalarchives/tdr-github-actions/.github/workflows/lambda_deploy.yml@main
with:
lambda-name: file-format-v2
deployment-package: file-format.jar
environment: ${{ github.event.inputs.environment }}
to-deploy: ${{ github.event.inputs.to-deploy }}
secrets:
ACCOUNT_NUMBER: ${{ secrets.ACCOUNT_NUMBER }}
MANAGEMENT_ACCOUNT: ${{ secrets.MANAGEMENT_ACCOUNT }}
WORKFLOW_PAT: ${{ secrets.WORKFLOW_PAT }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}