Skip to content

Commit

Permalink
Fixes #16 - Add building of Docker image (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnriem authored Aug 10, 2024
1 parent 9834b57 commit 540753c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@ jobs:
java-version: 21
- name: Build with Maven
run: mvn -B --ntp package
- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push to GHCR
run: |
cd api
mvn -P docker install docker:build docker:push
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ jobs:
java-version: 21
- name: Build with Maven
run: mvn -B -DskipTests=true -f pom.xml --ntp install
- name: Push to GHCR
run: |
cd api
mvn -B -DskipTests=true -P docker install docker:build docker:push
2 changes: 1 addition & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<sqlite-jdbc.version>3.46.0.0</sqlite-jdbc.version>
<!-- other -->
<java.version>21</java.version>
<piranha.version>24.7.0-SNAPSHOT</piranha.version>
<piranha.version>24.7.0</piranha.version>
<piranha.distribution>webprofile</piranha.distribution>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- plugins -->
Expand Down

0 comments on commit 540753c

Please sign in to comment.