From be5e304ee5a06b110f499a1393268d971689082f Mon Sep 17 00:00:00 2001 From: AlexBob Date: Tue, 17 Dec 2024 10:33:25 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(`.github/workflows/gradle-buil?= =?UTF-8?q?d.yml`):=20Add=20support=20for=20additional=20ARM=20platforms?= =?UTF-8?q?=20in=20Gradle=20build=20and=20Docker=20workflows.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gradle-build.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gradle-build.yml b/.github/workflows/gradle-build.yml index 490d207..681b92a 100644 --- a/.github/workflows/gradle-build.yml +++ b/.github/workflows/gradle-build.yml @@ -46,7 +46,7 @@ jobs: - name: Set up QEMU uses: docker/setup-qemu-action@v3 with: - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 with: @@ -54,10 +54,13 @@ jobs: - name: Setup Gradle uses: gradle/actions/setup-gradle@v4 - name: Execute Gradle Plate bootBuildImage + #linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 run: | chmod +x ./gradlew ./gradlew bootBuildImage --imagePlatform=linux/amd64 --network=host --publishImage ./gradlew bootBuildImage --imagePlatform=linux/arm64 --network=host --publishImage + ./gradlew bootBuildImage --imagePlatform=linux/arm/v6 --network=host --publishImage + ./gradlew bootBuildImage --imagePlatform=linux/arm/v7 --network=host --publishImage - name: Inspect run: | docker buildx imagetools inspect localhost:5000/plate-oauth2:latest @@ -95,7 +98,7 @@ jobs: - name: Build and Push Platform uses: docker/build-push-action@v6 with: - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 context: ./boot/platform push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} @@ -119,7 +122,7 @@ jobs: - name: Build and Push Oauth2 uses: docker/build-push-action@v6 with: - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 context: ./boot/oauth2 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.oauth2.outputs.tags }}