Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

fix: update reflection, update deployment process #12

fix: update reflection, update deployment process

fix: update reflection, update deployment process #12

Workflow file for this run

name: Build release
on:
push:
branches-ignore:
- '**'
tags:
- '**'
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 package -Dquarkus.container-image.build=true -Pnative -DskipTests -Dquarkus.container-image.registry=${{ env.REGISTRY }} -Dquarkus.application.version=${{ github.ref_name }} -Dquarkus.container-image.tag=${{ github.ref_name }}
- 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 -a ${{ env.REGISTRY }}/${{ github.repository }}
- name: Create GitHub Release
uses: lorislab/[email protected]
with:
args: generate --create-release --close-version --file .github/changelog.yaml
env:
CHANGELOG_TOKEN: ${{ secrets.GITHUB_TOKEN }}