Skip to content

Commit

Permalink
🎉 feat(.github/workflows/gradle-build.yml): Add support for ARM64 p…
Browse files Browse the repository at this point in the history
…latform in Docker build and remove unsupported ARMv6 and ARMv7 platforms.
  • Loading branch information
vnobo committed Dec 17, 2024
1 parent be5e304 commit 103992d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
platforms: linux/amd64,linux/arm64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
Expand All @@ -59,8 +59,6 @@ jobs:
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
Expand Down Expand Up @@ -98,7 +96,7 @@ jobs:
- name: Build and Push Platform
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
platforms: linux/amd64,linux/arm64
context: ./boot/platform
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
Expand All @@ -122,7 +120,7 @@ jobs:
- name: Build and Push Oauth2
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
platforms: linux/amd64,linux/arm64
context: ./boot/oauth2
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.oauth2.outputs.tags }}
Expand Down

0 comments on commit 103992d

Please sign in to comment.