diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ce4f77b294..6e8b968d92 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -93,6 +93,9 @@ jobs: java-version: '17' cache: maven + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + # only set version here - name: Install run: | @@ -111,7 +114,7 @@ jobs: - name: Build and push (Docker Hub) if: ${{ !inputs.skipPublish }} run: | - ./mvnw -B -ntp clean package -DskipTests -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.tag=${{needs.resolve-tag.outputs.release-tag}} ${{ matrix.profile }} + ./mvnw -B -ntp clean package -DskipTests -Dquarkus.container-image.build=true -Dquarkus.docker.buildx.platform=linux/amd64,linux/arm64 -Dquarkus.container-image.push=true -Dquarkus.container-image.tag=${{needs.resolve-tag.outputs.release-tag}} ${{ matrix.profile }} # # build and push Astra image to Amazon ECR @@ -149,7 +152,7 @@ jobs: QUARKUS_SMALLRYE_OPENAPI_INFO_LICENSE_NAME: '' QUARKUS_SMALLRYE_OPENAPI_INFO_LICENSE_URL: '' run: | - ./mvnw -B -ntp clean package -DskipTests -Dquarkus.container-image.build=true -Dquarkus.container-image.push=true -Dquarkus.container-image.registry=${{ secrets.ECR_REPOSITORY }} -Dquarkus.container-image.tag=${{needs.resolve-tag.outputs.release-tag}} ${{ matrix.profile }} + ./mvnw -B -ntp clean package -DskipTests -Dquarkus.container-image.build=true -Dquarkus.docker.buildx.platform=linux/amd64,linux/arm64 -Dquarkus.container-image.push=true -Dquarkus.container-image.registry=${{ secrets.ECR_REPOSITORY }} -Dquarkus.container-image.tag=${{needs.resolve-tag.outputs.release-tag}} ${{ matrix.profile }} # signs all docker images with cosign # skip whole job if we did not push images