Skip to content

Commit

Permalink
Build
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusroemer committed May 11, 2024
1 parent d82a533 commit 05cf85a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 05cf85a

Please sign in to comment.