-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (64 loc) · 1.91 KB
/
lambdas-dev-to-main-ci.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: 'CI Lambdas - CI Feature to Main'
on:
push:
branches:
- main
paths:
- 'lambdas/**'
pull_request:
branches:
- main
paths:
- 'lambdas/**'
permissions:
pull-requests: write
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
check_packages:
uses: ./.github/workflows/base-lambdas-check-packages.yml
with:
environment: development
python_version: 3.11
build_branch: ${{github.event.pull_request.head.ref}}
run_tests:
uses: ./.github/workflows/base-lambdas-reusable-test.yml
with:
python_version: 3.11
build_branch: ${{github.event.pull_request.head.ref}}
publish_all_lambda_layers:
name: Publish all Lambda Layers
needs: [ "run_tests" ]
uses: ./.github/workflows/base-lambda-layer-reusable-publish-all.yml
if: |
(github.ref == 'refs/heads/main')
with:
environment: development
python_version: '3.11'
build_branch: ${{github.event.pull_request.head.ref}}
sandbox: ndr-dev
secrets:
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}
deploy_all_lambdas:
uses: ./.github/workflows/base-lambdas-reusable-deploy-all.yml
needs: ["run_tests", "publish_all_lambda_layers"]
if: |
(github.ref == 'refs/heads/main')
with:
environment: development
python_version: '3.11'
build_branch: ${{github.event.pull_request.head.ref}}
sandbox: ndr-dev
secrets:
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}
deploy_ods_batch_update:
name: Deploy ODS Batch Update
needs: [ "run_tests" ]
uses: ./.github/workflows/base-batch-update.yml
if: github.ref == 'refs/heads/main'
with:
build_branch: ${{ github.event.pull_request.head.ref }}
environment: development
sandbox: ndr-dev
secrets:
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}