use com.kohlschutter.mavenplugins fork for copy-rename-maven-plugin #52
Workflow file for this run
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: JVM Knative Quarkus Bench Workflow | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
- '**.MD' | |
- '**/.gitignore' | |
- 'LICENSE' | |
- 'samples/**' | |
- '.github/workflows/github-action-native.yml' | |
jobs: | |
build-jvm: | |
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 JVM images | |
run: | |
cd ${{ github.workspace }} && mvn clean package -Dquarkus.container-image.registry=ghcr.io -Dquarkus.container-image.group=${SAFE_REPO_NAME} | |
- run: echo "JVM build status ${{ job.status }}." | |
- name: Push the images | |
run: | |
cd ${{ github.workspace }} && mvn package -Dquarkus.container-image.registry=ghcr.io -Dquarkus.container-image.group=${SAFE_REPO_NAME} -Dquarkus.container-image.push=true | |
- run: echo "Image 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 |