Skip to content

Commit

Permalink
also use maven native profile
Browse files Browse the repository at this point in the history
  • Loading branch information
bhuism committed Dec 3, 2024
1 parent 31d5dfe commit 4d215e1
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'liberica'
cache: maven

- name: Build with Maven
run: mvn --batch-mode -Dmaven.test.skip=true --no-transfer-progress package
# - name: Setup Java
# uses: actions/setup-java@v4
# with:
# java-version: '21'
# distribution: 'liberica'
# cache: maven
#
# - name: Build with Maven
# run: mvn --batch-mode -Dmaven.test.skip=true --no-transfer-progress package

- name: Login to GHCR
uses: docker/login-action@v3
Expand All @@ -79,5 +79,6 @@ jobs:
--builder docker.io/paketobuildpacks/builder-jammy-buildpackless-tiny \
--buildpack gcr.io/paketo-buildpacks/java-native-image \
--publish \
--env BP_NATIVE_IMAGE=true
--env BP_NATIVE_IMAGE=true \
--env BP_MAVEN_ACTIVE_PROFILES=native

0 comments on commit 4d215e1

Please sign in to comment.