Fixes #75 - Update to latest version of Piranha Web Profile #89
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: | |
- '*' | |
tags-ignore: | |
- 'v*' | |
pull_request: | |
branches: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
ghcr: | |
if: github.repository == 'piranhacloud/piranha-smart' && github.event_name != 'pull_request' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Set up Java 21 | |
uses: actions/setup-java@v3 | |
with: | |
cache: 'maven' | |
distribution: 'temurin' | |
java-version: 21 | |
- name: Build with Maven | |
run: mvn -B -ntp verify | |
- name: Build with Maven | |
run: mvn -B -Dmaven.javadoc.skip=true -DskipTests=true -DskipITs=true -ntp verify | |
- name: Login to GHCR | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
with: | |
version: v0.10.0 | |
- run: docker buildx inspect | |
- name: Build container image | |
run: | | |
mvn -B -Dmaven.javadoc.skip=true -DskipTests=true -DskipITs=true -ntp install | |
mvn -B -DskipTests=true -DskipITs=true -ntp -P docker deploy |