-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (54 loc) · 1.91 KB
/
github-action-jvm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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