diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index f2dacd227..18700e5c1 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -35,7 +35,7 @@ jobs: mysql -uroot -proot -e "CREATE DATABASE iam CHARACTER SET latin1 COLLATE latin1_swedish_ci;" mysql -uroot -proot -e "GRANT ALL ON *.* TO 'iam'@'%';" mysql -uroot -proot -e "FLUSH PRIVILEGES;" - mvn -Dspring.profiles.active=mysql-test package install + mvn -Dspring.profiles.active=mysql-test -q package install - name: Copy artifacts to docker dir run: | @@ -43,11 +43,17 @@ jobs: cp iam-test-client/target/iam-test-client.jar iam-test-client/docker - name: Generate buildpacks - run: mvn -DskipTests -U -B spring-boot:build-image - + run: mvn -DskipTests -U -B -q spring-boot:build-image + + - name: Setup QEMU + uses: docker/setup-qemu-action@v3 + + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Docker login if: startsWith(github.ref, 'refs/tags/') - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} @@ -60,7 +66,7 @@ jobs: - name: Docker metainformation for iam-login-service id: ls-meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v5 with: images: indigoiam/iam-login-service tags: | @@ -69,7 +75,7 @@ jobs: - name: Docker metainformation for iam-test-client id: tc-meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v5 with: images: indigoiam/iam-test-client tags: | @@ -77,19 +83,21 @@ jobs: type=ref,event=tag - name: Build & push iam-login-service docker image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v5 with: tags: ${{ steps.ls-meta.outputs.tags }} labels: ${{ steps.ls-meta.outputs.labels }} context: iam-login-service/docker/ file: iam-login-service/docker/Dockerfile.prod + platforms: linux/amd64,linux/arm64 push: ${{ startsWith(github.ref, 'refs/tags/') }} - name: Build & push iam-test-client docker image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v5 with: tags: ${{ steps.tc-meta.outputs.tags }} labels: ${{ steps.tc-meta.outputs.labels }} context: iam-test-client/docker/ file: iam-test-client/docker/Dockerfile.prod + platforms: linux/amd64,linux/arm64 push: ${{ startsWith(github.ref, 'refs/tags/') }}