-
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (48 loc) · 1.24 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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 22
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 22
- 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