Skip to content

Commit

Permalink
Fixes #16 - Add building of Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
mnriem committed Aug 10, 2024
1 parent 9834b57 commit be76556
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
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 repo
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

0 comments on commit be76556

Please sign in to comment.