Skip to content

CI Build

CI Build #40

Workflow file for this run

name: CI Build
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
- quarkus_auth_simple
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '22'
- name: Build native executable and run tests
run: ./mvnw package -Dnative -Dquarkus.native.container-build=true
- name: Login to Harbor
uses: docker/login-action@v3
with:
registry: ${{ secrets.HARBOR_URL }}
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
push: true
context: .
file: src/main/docker/Dockerfile.native
platforms: linux/amd64,linux/arm64,linux/386
tags: ${{ secrets.HARBOR_URL }}/authn_simple:${{ github.ref_name }}