This repository has been archived by the owner on May 16, 2024. It is now read-only.
Merge pull request #120 from lorislab/dependabot/maven/surefire-plugi… #70
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: Latest build | |
on: | |
push: | |
branches: | |
- 'main' | |
tags-ignore: | |
- '**' | |
env: | |
REGISTRY: ghcr.io | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
cache-dependency-path: ./src/main/webui/pnpm-lock.yaml | |
- name: Set up java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
cache: 'maven' | |
- name: Build and test project | |
run: mvn --batch-mode clean verify -Pnative -Dquarkus.container-image.build=true -Dquarkus.container-image.registry=${{ env.REGISTRY }} | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Push docker image | |
run: docker push ${{ env.REGISTRY }}/${{ github.repository }}:latest |