From 05cf85aefc39a2ac2cbf5bc6bb39cb78688af5e3 Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Wed, 8 May 2024 22:43:48 +0200 Subject: [PATCH] Build --- .github/workflows/backend.yml | 5 +++++ backend/Dockerfile | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 1d182694b..26a85c3dd 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -76,6 +76,11 @@ jobs: if: env.CACHE_HIT == 'false' uses: gradle/actions/setup-gradle@v3 + - name: Build Backend + if: env.CACHE_HIT == 'false' + working-directory: ./backend + run: ./gradlew bootJar + - name: Build and push image if input files changed if: env.CACHE_HIT == 'false' uses: docker/build-push-action@v5 diff --git a/backend/Dockerfile b/backend/Dockerfile index e1ebaa37c..b8615139e 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -4,8 +4,6 @@ WORKDIR /app COPY build/libs/backend.jar app.jar -# Expose the port your application uses EXPOSE 8079 -# Command to run your jar ENTRYPOINT ["java", "-jar", "app.jar", "--spring.profiles.active=docker"]