fix(deps): update all non-major dependencies #566
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 project | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
permissions: | |
packages: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: adopt | |
- name: Build | |
run: mvn -B package | |
- name: Docker Login | |
if: ${{ github.event_name != 'pull_request'}} | |
run: echo ${{secrets.GITHUB_TOKEN}} | docker login ghcr.io -u ${{github.actor}} --password-stdin | |
- name: Push image | |
if: ${{ github.event_name != 'pull_request'}} | |
run: mvn package -Dquarkus.container-image.push | |
build-native: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: adopt | |
- name: Build Native | |
run: mvn -B package -Pnative -Dquarkus.container-image.build -Dquarkus.container-image.tag=main-native | |
- name: Docker Login | |
if: ${{ github.event_name != 'pull_request'}} | |
run: echo ${{secrets.GITHUB_TOKEN}} | docker login ghcr.io -u ${{github.actor}} --password-stdin | |
- name: Push Native Image | |
if: ${{ github.event_name != 'pull_request'}} | |
run: mvn -B package -Pnative -Dquarkus.container-image.push -Dquarkus.native.reuse-existing=true -Dquarkus.container-image.tag=main-native |