Skip to content

Fixes #163 - Rework Dockerfile (#164) #97

Fixes #163 - Rework Dockerfile (#164)

Fixes #163 - Rework Dockerfile (#164) #97

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: |
sudo apt-get update
sudo apt-get -y install libegl1\
libvpx7\
libevent-2.1-7\
libopus0\
libopengl0\
libwoff1\
libharfbuzz-icu0\
libgstreamer-plugins-base1.0-0\
libgstreamer-gl1.0-0\
libhyphen0\
libmanette-0.2-0\
libgles2\
gstreamer1.0-libav
mvn --no-transfer-progress -B 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