From bbe87359e4a64c179759aecbd976f37537e5243e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viczi=C3=A1n=20Istv=C3=A1n?= Date: Sat, 10 Dec 2022 20:23:06 +0100 Subject: [PATCH] Multi-platform image --- .github/workflows/lws.yml | 13 ++++++++++--- CHANGELOG.md | 4 ++++ pom.xml | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lws.yml b/.github/workflows/lws.yml index 6b1a36b..7a5e7b2 100644 --- a/.github/workflows/lws.yml +++ b/.github/workflows/lws.yml @@ -24,22 +24,25 @@ jobs: - name: Build with Maven run: mvn -B package --file pom.xml - name: Login to Docker Hub - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Get version run: | VERSION=$( mvn help:evaluate -Dexpression=project.version -q -DforceStdout ) echo "::set-output name=version::$VERSION" id: get_version - name: Build and push - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: context: ./ file: ./Dockerfile + platforms: linux/amd64,linux/arm64 push: true tags: | ${{ secrets.DOCKER_HUB_USERNAME }}/lwsapp:latest @@ -50,8 +53,10 @@ jobs: aws-access-key-id: ${{ secrets.ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.SECRET_ACCESS_KEY }} aws-region: "eu-central-1" + if: ${{ false }} - name: Upload package to S3 bucket run: aws s3 cp target/lwsapp.jar s3://learnwebservices-deploy/lwsapp-${{ steps.get_version.outputs.version }}-${{github.run_number}}.jar + if: ${{ false }} - name: Create new ElasticBeanstalk Application Version run: | aws elasticbeanstalk create-application-version \ @@ -59,5 +64,7 @@ jobs: --source-bundle S3Bucket="learnwebservices-deploy",S3Key="lwsapp-${{ steps.get_version.outputs.version }}-${{github.run_number}}.jar" \ --version-label "ver-${{ steps.get_version.outputs.version }}-${{github.run_number}}" \ --description "commit-sha-${{ github.sha }}" + if: ${{ false }} - name: Deploy new ElasticBeanstalk Application Version run: aws elasticbeanstalk update-environment --environment-name Learnwebservices-env --version-label "ver-${{ steps.get_version.outputs.version }}-${{github.run_number}}" + if: ${{ false }} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 92955fa..bfbcc50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [2.0.1] + +- Multi-platform image (`linux/amd64`, `linux/arm64`) + ## [2.0.0] - Move to Amazon Web Services diff --git a/pom.xml b/pom.xml index 3fc7594..afb492a 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ learnwebservices lwsapp - 2.0.0 + 2.0.1 jar