Skip to content

Commit 2cdc506

Browse files
committed
add CI/CD for Java 19
1 parent 06a1a41 commit 2cdc506

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/deliver19.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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

0 commit comments

Comments
 (0)