Skip to content

use com.kohlschutter.mavenplugins fork for copy-rename-maven-plugin #48

use com.kohlschutter.mavenplugins fork for copy-rename-maven-plugin

use com.kohlschutter.mavenplugins fork for copy-rename-maven-plugin #48

name: Native Knative Quarkus Bench Workflow
on:
push:
paths-ignore:
- '**.md'
- '**.MD'
- '**/.gitignore'
- 'LICENSE'
- 'samples/**'
- '.github/workflows/github-action-jvm.yml'
jobs:
build-native:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: login to github container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: make sure repository is lowercase
run: echo "SAFE_REPO_NAME=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
- run: echo "Event ${{ github.event_name }} triggered run on Github ${{ runner.os }} server."
- run: echo "Branch ${{ github.ref }} and repo ${SAFE_REPO_NAME}."
- name: Check out repo code
uses: actions/checkout@v3
- run: echo "${{ github.repository }} repository cloned to runner."
- name: Build and push Native images
run:
cd ${{ github.workspace }} && mvn clean package -Dquarkus.container-image.registry=ghcr.io -Dquarkus.container-image.group=${SAFE_REPO_NAME} -Dquarkus.container-image.push=true -Pnative
- run: echo "Native build and push status ${{ job.status }}."
- name: Build Environment Version Information
run: |
echo "OS version:"
cat /etc/issue.net
echo
echo "java version:"
java --version
echo
echo "mvn version:"
mvn -v
echo
echo "cc version:"
cc -v