From 1827002ab17c88fb43243d32aedb6dcddc0b0f3d Mon Sep 17 00:00:00 2001 From: Andy Boothe Date: Mon, 25 Sep 2023 17:15:03 -0500 Subject: [PATCH] add version 21 --- .github/workflows/deliver21.yml | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/deliver21.yml diff --git a/.github/workflows/deliver21.yml b/.github/workflows/deliver21.yml new file mode 100644 index 0000000..007cdd1 --- /dev/null +++ b/.github/workflows/deliver21.yml @@ -0,0 +1,40 @@ +name: deliver20 + +on: + push: + branches: + - release/21 + +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 21 + uses: actions/setup-java@v3 + with: + java-version: '21' + 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-1 + - name: Login to Amazon ECR Public + uses: aws-actions/amazon-ecr-login@v1 + with: + registry-type: "public" + - name: Deploy artifacts + run: mvn -B clean dependency:copy-dependencies docker:build docker:tag docker:push \ No newline at end of file