-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (50 loc) · 1.7 KB
/
github-action-native.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
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/#-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