File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : deliver18
2+
3+ on :
4+ push :
5+ branches :
6+ - release/19
7+
8+ permissions :
9+ id-token : write
10+ contents : read
11+
12+ jobs :
13+ deploy :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout source code
17+ uses : actions/checkout@v3
18+ - name : Set up JDK 19
19+ uses : actions/setup-java@v3
20+ with :
21+ java-version : ' 19'
22+ distribution : ' corretto'
23+ - name : Cache local Maven repository
24+ uses : actions/cache@v3
25+ with :
26+ path : ~/.m2/repository
27+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
28+ restore-keys : |
29+ ${{ runner.os }}-maven-
30+ - name : Configure AWS credentials
31+ uses : aws-actions/configure-aws-credentials@v1
32+ with :
33+ role-to-assume : arn:aws:iam::${{ secrets.CD_AWS_ACCOUNT_ID }}:role/GitHubRole
34+ aws-region : us-east-1
35+ - name : Login to Amazon ECR Public
36+ uses : aws-actions/amazon-ecr-login@v1
37+ with :
38+ registry-type : " public"
39+ - name : Deploy artifacts
40+ run : mvn -B clean dependency:copy-dependencies docker:build docker:tag docker:push
You can’t perform that action at this time.
0 commit comments