From 426e3aea1eb8bc2a3318d18f1f1936c265eefeb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Melaine=20G=C3=A9rard?= Date: Thu, 21 Nov 2024 21:32:50 +0100 Subject: [PATCH] =?UTF-8?q?:sparkles:=20R=C3=A9paration=20CI=20V2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build-docker.yml | 4 +--- Dockerfile | 19 +------------------ 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/.gitea/workflows/build-docker.yml b/.gitea/workflows/build-docker.yml index 0a36e20..aad630c 100644 --- a/.gitea/workflows/build-docker.yml +++ b/.gitea/workflows/build-docker.yml @@ -16,8 +16,6 @@ jobs: uses: aevea/action-kaniko@master with: image: camelia-studio/kiss-shot_acerola-orion_heart-under-blade - username: ${{ secrets.REGISTRY_USERNAME }} - password: ${{ secrets.REGISTRY_PASSWORD }} - registry: git.crystalyx.net + registry: ${{ secrets.REGISTRY_SERVER }} tag: ${{ gitea.ref_name }} tag_with_latest: true \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 2a85eb8..2c3cb43 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,26 +1,9 @@ -FROM eclipse-temurin:21-alpine AS pre-build -ENV JAVA_HOME=/opt/jdk/jdk-21.0.1+12 -ENV PATH=$JAVA_HOME/bin:$PATH - -ADD https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.1%2B12/OpenJDK21U-jdk_x64_alpine-linux_hotspot_21.0.1_12.tar.gz /opt/jdk/ -RUN tar -xzvf /opt/jdk/OpenJDK21U-jdk_x64_alpine-linux_hotspot_21.0.1_12.tar.gz -C /opt/jdk/ -RUN ["jlink", "--compress=2", \ - "--module-path", "/opt/jdk/jdk-21.0.1+12/jmods/", \ - "--add-modules", "java.base,java.logging,java.naming,java.desktop,jdk.unsupported", \ - "--no-header-files", "--no-man-pages", \ - "--output", "/kiss-runtime"] - FROM eclipse-temurin:21-alpine AS build WORKDIR /src COPY . . RUN ./gradlew clean shadowJar - -FROM alpine:latest AS runner - -COPY --from=pre-build /kiss-runtime /opt/jdk -ENV PATH=$PATH:/opt/jdk/bin - +FROM eclipse-temurin:21-jre-alpine AS runner RUN mkdir -p /app WORKDIR /app COPY --from=build /src/build/libs/kiss-shot-acerola.jar /app/kiss-shot-acerola.jar