Skip to content

Fixes #236 - Add pushing tagged version to GHCR to release workflow (… #184

Fixes #236 - Add pushing tagged version to GHCR to release workflow (…

Fixes #236 - Add pushing tagged version to GHCR to release workflow (… #184

Workflow file for this run

name: build
on:
push:
branches:
- 'current'
pull_request:
branches:
- '*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Java 21
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 21
cache: 'maven'
- 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