Skip to content

Commit

Permalink
✨ feat(.github/workflows/gradle-build.yml): Add support for additio…
Browse files Browse the repository at this point in the history
…nal ARM platforms in Gradle build and Docker workflows.
  • Loading branch information
vnobo committed Dec 17, 2024
1 parent 0e99a29 commit be5e304
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,21 @@ 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:
driver-opts: network=host
- 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
Expand Down Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit be5e304

Please sign in to comment.