Skip to content

Fixes #16 - Add building of Docker image #14

Fixes #16 - Add building of Docker image

Fixes #16 - Add building of Docker image #14

Workflow file for this run

name: build
on:
push:
branches:
- '*'
tags-ignore:
- 'release-*'
- 'v*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Java 21
uses: actions/setup-java@v2
with:
distribution: 'temurin'
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