fix build.yml (x8)

This commit is contained in:
dalbodeule 2024-06-13 22:35:30 +09:00
parent d717b297f3
commit 0481681dd4
No known key found for this signature in database
GPG Key ID: EFA860D069C9FA65
3 changed files with 8 additions and 6 deletions

View File

@ -33,9 +33,10 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push Native Image (multi-platform)
- name: Create multi-platform image
run: |
pack build --builder paketobuildpacks/builder-jammy-full:latest \
--tag dalbodeule/chzzkbot:latest \
docker buildx create --use
docker buildx build --platform linux/amd64,linux/arm64 \
--tag dalbodeule/chzzkbot:${{ env.DATETIME }} \
--publish
--tag dalbodeule/chzzkbot:latest \
--push .

View File

@ -1,5 +1,5 @@
# Builder Stage
FROM gradle:jdk-21-and-22-graal AS builder
FROM ghcr.io/graalvm/graalvm-ce:22.3.3 AS builder
# Set working directory
WORKDIR /app
@ -18,6 +18,7 @@ RUN ./gradlew --no-daemon dependencies
COPY src ./src
# Build the application
RUN ./gradlew build
RUN ./gradlew nativeCompile
# Runner Stage

View File

@ -39,7 +39,7 @@ graalvmNative {
named("main") {
useFatJar.set(true)
sharedLibrary.set(false)
buildArgs.add("--initialize-at-build-time=org.hibernate.*")
buildArgs.add("-march=compatibility")
}
}
metadataRepository {