-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (51 loc) · 1.76 KB
/
docker_publish_native_amd64.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
55
56
57
58
59
60
61
62
63
# CI with maven build and scan
name: CI docker build native amd64
on:
# Trigger analysis when pushing in master or pull requests, and when creating
# a pull request.
push:
branches:
- graal
release:
types: [published]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
# Shallow clones should be disabled for a better relevancy of analysis
fetch-depth: 0
- name: Echo ref name trigger
run: echo ${{ github.ref_name }}
- uses: graalvm/setup-graalvm@main
with:
java-version: '22-ea'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
- name: Cache Maven packages
uses: actions/cache@main
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build and analyze
run: mvn install -Dnative -Dquarkus.native.container-build=true
- name: Set up QEMU
uses: docker/setup-qemu-action@master
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@master
- name: Login to Docker Hub
uses: docker/login-action@master
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@master
with:
context: .
file: src/main/docker/Dockerfile.native-micro
platforms: linux/amd64
push: true
tags: fugeritorg/fj-daogen-quarkus-demo:${{ github.ref_name }}-amd64native,fugeritorg/fj-daogen-quarkus-demo:latest-amd64native