Fixes #175 - Add PrimeFaces (#179) #105
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |