Skip to content

try: use newer builder image #29

try: use newer builder image

try: use newer builder image #29

# This workflow will build a Quarkus Native project with Maven and Jib.
# It caches/restores any maven dependency to improve the workflow execution time.
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: quarkus-native-mandrel-in-docker-jib
on: [ push, pull_request, workflow_dispatch ]
env:
JIB_BUILD_OPTS:
-Dquarkus.native.container-build=true
-Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel-builder-image:jdk-17
-Dquarkus.container-image.build=true
-Dquarkus.container-image.push=true
-Dquarkus.container-image.registry=ghcr.io
-Dquarkus.container-image.group=${{ github.actor }}
-Dquarkus.container-image.username=${{ github.actor }}
-Dquarkus.container-image.password=${{ secrets.GITHUB_TOKEN }}
-Dquarkus.jib.base-native-image=quay.io/quarkus/quarkus-distroless-image:2.0
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build Quarkus Native with Maven, Mandrel, Docker and Jib
run: mvn -B package -Dnative $JIB_BUILD_OPTS