-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (34 loc) · 1.11 KB
/
release_created.yaml
File metadata and controls
41 lines (34 loc) · 1.11 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
name: Github Release Created
on:
release:
types: ["published"] # Inherits all input defaults
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
deploy-main:
name: Deploy changes to main in nonprod AWS Account
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
packages: read
strategy:
max-parallel: 1
matrix:
component: [api]
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Deploy Nonprod Environment
env:
APP_CLIENT_ID: ${{ secrets.APP_CLIENT_ID }}
APP_PEM_FILE: ${{ secrets.APP_PEM_FILE }}
run: |
bash .github/scripts/dispatch_internal_repo_workflow.sh \
--releaseVersion "${{ github.event.release.tag_name }}" \
--targetWorkflow "dispatch-deploy-static-notify-supplier-api-env.yaml" \
--targetEnvironment "main" \
--targetAccountGroup "nhs-notify-supplier-api-nonprod" \
--targetComponent "${{ matrix.component }}" \
--terraformAction "apply"