Skip to content

Commit

Permalink
✨ feat(gradle-build.yml): Enhance multi-platform support by dynamic…
Browse files Browse the repository at this point in the history
…ally setting image platform in GitHub Actions workflow.
  • Loading branch information
vnobo committed Dec 16, 2024
1 parent eee0fc7 commit f5e7043
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Execute Gradle platform bootBuildImage
run: |
chmod +x ./gradlew
./gradlew bootBuildImage
./gradlew bootBuildImage --imagePlatform=${{ matrix.platform }}
- name: Log into registry ${{ env.GITHUB_REGISTRY }}
if: github.event_name != 'pull_request'
Expand Down Expand Up @@ -101,6 +101,7 @@ jobs:
- name: Build and Push Oauth2
uses: docker/build-push-action@v6
with:
platforms: ${{ matrix.platform }}
context: ./boot/oauth2
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.oauth2.outputs.tags }}
Expand Down

0 comments on commit f5e7043

Please sign in to comment.