-
Notifications
You must be signed in to change notification settings - Fork 13
39 lines (34 loc) · 1.05 KB
/
Copy pathdockerNative.yml
File metadata and controls
39 lines (34 loc) · 1.05 KB
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
name: Build Docker Native Image
permissions:
contents: read
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Java
id: setup_java
uses: graalvm/setup-graalvm@v1
with:
java-version: '25'
distribution: 'graalvm'
- name: Build Backend Application
run: |
chmod +x mvnw
./mvnw -B clean install -DskipTests
./mvnw -B package -pl sendium-app -Pnative -Dquarkus.native.container-build=false
- name: Log in to Docker Hub
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v7
with:
context: ./sendium-app
file: ./sendium-app/src/main/docker/Dockerfile.native
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sendium:latest-native