-
Notifications
You must be signed in to change notification settings - Fork 1
97 lines (89 loc) · 3.31 KB
/
0.pipeline-lambda.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Deploy Lambda using AWS CloudFormation
on:
workflow_call:
inputs:
aws-region:
required: true
type: string
template-path:
required: true
type: string
docker-build-script-file-path:
required: false
type: string
default: ""
architecture:
required: true
type: string
check-quality-gate:
required: false
type: boolean
default: true
execute-sonar-analysis:
required: false
type: boolean
default: true
native-image:
required: true
type: boolean
quality-gate-name:
required: false
type: string
default: ""
secrets:
aws-access-key-id:
required: true
aws-secret-access-key:
required: true
sonar-token:
required: true
sonar-host-url:
required: true
permissions:
contents: read
jobs:
generate-basic-constants:
uses: devsuperior/dsc-shared-pipelines/.github/workflows/generate-basic-constants.yml@main
build-java-gradle:
uses: devsuperior/dsc-shared-pipelines/.github/workflows/build-java-gradle.yml@main
build-sam:
needs: generate-basic-constants
uses: devsuperior/dsc-shared-pipelines/.github/workflows/build-sam.yml@main
with:
environment-name: ${{ needs.generate-basic-constants.outputs.environment-name }}
repository-name: ${{ needs.generate-basic-constants.outputs.repository-name }}
template-path: ${{ inputs.template-path }}
docker-build-script-file-path: ${{ inputs.docker-build-script-file-path }}
architecture: ${{ inputs.architecture }}
native-image: ${{ inputs.native-image }}
sonar-analysis:
needs: [build-java-gradle, generate-basic-constants]
uses: devsuperior/dsc-shared-pipelines/.github/workflows/sonar-analysis.yml@main
with:
repository-name: ${{ needs.generate-basic-constants.outputs.repository-name }}
check-quality-gate: ${{ inputs.check-quality-gate }}
execute-sonar-analysis: ${{ inputs.execute-sonar-analysis }}
secrets:
sonar-token: ${{ secrets.sonar-token }}
sonar-host-url: ${{ secrets.sonar-host-url }}
check-delete-cloud-formation-status:
needs: [generate-basic-constants, sonar-analysis, build-sam]
uses: devsuperior/dsc-shared-pipelines/.github/workflows/check-delete-cloud-formation-status.yml@main
with:
aws-region: ${{ inputs.aws-region }}
stack-name: ${{ needs.generate-basic-constants.outputs.stack-name }}
secrets:
aws-access-key-id: ${{ secrets.aws-access-key-id }}
aws-secret-access-key: ${{ secrets.aws-secret-access-key }}
deploy-sam:
needs: [check-delete-cloud-formation-status, generate-basic-constants]
uses: devsuperior/dsc-shared-pipelines/.github/workflows/deploy-sam.yml@main
with:
aws-region: ${{ inputs.aws-region }}
environment-name: ${{ needs.generate-basic-constants.outputs.environment-name }}
stack-name: ${{ needs.generate-basic-constants.outputs.stack-name }}
architecture: ${{ inputs.architecture }}
repository-name: ${{ needs.generate-basic-constants.outputs.repository-name }}
secrets:
aws-access-key-id: ${{ secrets.aws-access-key-id }}
aws-secret-access-key: ${{ secrets.aws-secret-access-key }}