This repository has been archived by the owner on May 16, 2024. It is now read-only.
Merge pull request #150 from lorislab/dependabot/maven/quarkus.versio… #84
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@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
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: 21 | |
cache: 'maven' | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and test project | |
run: mvn --batch-mode clean verify -Pnative | |
env: | |
QUARKUS_CONTAINER_IMAGE_ADDITIONAL_TAGS: 'latest' | |
QUARKUS_CONTAINER_IMAGE_PUSH: 'true' | |
QUARKUS_CONTAINER_IMAGE_TAG: ${{ github.ref_name }} | |
QUARKUS_APPLICATION_VERSION: ${{ github.ref_name }} | |
QUARKUS_CONTAINER_IMAGE_REGISTRY: 'ghcr.io' | |
QUARKUS_CONTAINER_IMAGE_GROUP: ${{ github.repository_owner }} | |
QUARKUS_CONTAINER_IMAGE_BUILD: 'true' |