diff --git a/.github/workflows/deliver17.yml b/.github/workflows/deliver17.yml index c9b1639..8a291f2 100644 --- a/.github/workflows/deliver17.yml +++ b/.github/workflows/deliver17.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up JDK 17 uses: actions/setup-java@v3 with: @@ -28,12 +28,12 @@ jobs: restore-keys: | ${{ runner.os }}-maven- - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v4 with: role-to-assume: arn:aws:iam::${{ secrets.CD_AWS_ACCOUNT_ID }}:role/GitHubRole aws-region: us-east-2 - name: Login to Amazon ECR Public - uses: aws-actions/amazon-ecr-login@v1 + uses: aws-actions/amazon-ecr-login@v2 - name: Deploy artifacts run: mvn -B -Daws.account="$AWS_ACCOUNT_ID" -Daws.region="$AWS_REGION" clean compile install docker:push env: diff --git a/.github/workflows/deliver18.yml b/.github/workflows/deliver18.yml index f314410..2916f9f 100644 --- a/.github/workflows/deliver18.yml +++ b/.github/workflows/deliver18.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up JDK 18 uses: actions/setup-java@v3 with: @@ -28,12 +28,12 @@ jobs: restore-keys: | ${{ runner.os }}-maven- - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v4 with: role-to-assume: arn:aws:iam::${{ secrets.CD_AWS_ACCOUNT_ID }}:role/GitHubRole aws-region: us-east-2 - name: Login to Amazon ECR Public - uses: aws-actions/amazon-ecr-login@v1 + uses: aws-actions/amazon-ecr-login@v2 - name: Deploy artifacts run: mvn -B -Daws.account="$AWS_ACCOUNT_ID" -Daws.region="$AWS_REGION" clean compile install docker:push env: diff --git a/.github/workflows/deliver19.yml b/.github/workflows/deliver19.yml new file mode 100644 index 0000000..2e72929 --- /dev/null +++ b/.github/workflows/deliver19.yml @@ -0,0 +1,41 @@ +name: deliver19 + +on: + push: + branches: + - java/19 + +permissions: + id-token: write + contents: read + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout source code + uses: actions/checkout@v4 + - name: Set up JDK 19 + uses: actions/setup-java@v3 + with: + java-version: '19' + distribution: 'corretto' + - name: Cache local Maven repository + uses: actions/cache@v3 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: arn:aws:iam::${{ secrets.CD_AWS_ACCOUNT_ID }}:role/GitHubRole + aws-region: us-east-2 + - name: Login to Amazon ECR Public + uses: aws-actions/amazon-ecr-login@v2 + - name: Deploy artifacts + run: mvn -B -Daws.account="$AWS_ACCOUNT_ID" -Daws.region="$AWS_REGION" clean compile install docker:push + env: + AWS_REGION: ${{ secrets.AWS_REGION }} + AWS_ACCOUNT_ID: ${{ secrets.CD_AWS_ACCOUNT_ID }} diff --git a/.github/workflows/deliver20.yml b/.github/workflows/deliver20.yml new file mode 100644 index 0000000..ebf2081 --- /dev/null +++ b/.github/workflows/deliver20.yml @@ -0,0 +1,41 @@ +name: deliver19 + +on: + push: + branches: + - java/20 + +permissions: + id-token: write + contents: read + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout source code + uses: actions/checkout@v4 + - name: Set up JDK 20 + uses: actions/setup-java@v3 + with: + java-version: '20' + distribution: 'corretto' + - name: Cache local Maven repository + uses: actions/cache@v3 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: arn:aws:iam::${{ secrets.CD_AWS_ACCOUNT_ID }}:role/GitHubRole + aws-region: us-east-2 + - name: Login to Amazon ECR Public + uses: aws-actions/amazon-ecr-login@v2 + - name: Deploy artifacts + run: mvn -B -Daws.account="$AWS_ACCOUNT_ID" -Daws.region="$AWS_REGION" clean compile install docker:push + env: + AWS_REGION: ${{ secrets.AWS_REGION }} + AWS_ACCOUNT_ID: ${{ secrets.CD_AWS_ACCOUNT_ID }} diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 0a074c0..3fc0bb3 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up JDK 17 uses: actions/setup-java@v3 with: diff --git a/pom.xml b/pom.xml index 4b996ef..f0684bf 100644 --- a/pom.xml +++ b/pom.xml @@ -62,7 +62,7 @@ under the License. 17 ${project.version} al2 - 2.1.1 + 2.1.4 @@ -81,7 +81,7 @@ under the License. org.codehaus.mojo license-maven-plugin - 2.0.0 + 2.1.0 false @@ -109,7 +109,7 @@ under the License. org.apache.maven.plugins maven-shade-plugin - 2.3 + 3.5.1 package @@ -130,7 +130,7 @@ under the License. io.fabric8 docker-maven-plugin - 0.40.1 + 0.43.4 docker-build @@ -180,7 +180,7 @@ under the License. software.amazon.awssdk bom - 2.17.211 + 2.19.19 pom import @@ -191,7 +191,7 @@ under the License. com.amazonaws aws-lambda-java-core - 1.2.1 + 1.2.2 provided