Skip to content

Fixes #190 - Update to Java 23 (#192) #113

Fixes #190 - Update to Java 23 (#192)

Fixes #190 - Update to Java 23 (#192) #113

Workflow file for this run

name: build
on:
push:
branches:
- 'current'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- name: Checkout Sources
uses: actions/checkout@v3
- name: Setup Java 21
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 21
- name: Build WAR
run: |
mvn -B -DskipITs=true -DskipTests=true --ntp install
- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push image
run: |
docker build -f src/main/docker/Dockerfile -t ghcr.io/piranhacloud/start:latest .
docker push ghcr.io/piranhacloud/start:latest