-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathgithub-actions-spring-boot-webserver.yml
More file actions
73 lines (62 loc) · 1.95 KB
/
github-actions-spring-boot-webserver.yml
File metadata and controls
73 lines (62 loc) · 1.95 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: From JVM to Native - The Path to Efficient Java Containers
on:
push:
paths:
- 'native-image/spring-boot-webserver/**'
- '.github/workflows/github-actions-spring-boot-webserver.yml'
jobs:
build:
name: Run webserver
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@v4
- name: Set up GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '25'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Spring Boot Web Server
# working-directory: native-image/spring-boot-webserver
run: |
# Prepare static resources
pwd
unzip native-image/spring-boot-webserver/src/main/resources/static.zip
cd /home/runner/work/workshops/workshops/native-image/spring-boot-webserver
#
# Build JAR (Debian Distoless Java 25)
./build-jar-java-base.sh
#
# Build JAR (Eclipse-temurin:25)
./build-jar-eclipse-temurin.sh
#
# Build Jlink custom runtime (Distroless Java Base Debian)
./build-jlink.sh
#
# Build dynamic image (Distroless Java Base Debian)
./build-dynamic-image.sh
#
# Build dynamic image, optimized for size (Distroless Java Base Debian)
./build-dynamic-image-optimized.sh
#
# Setup musl toolchain
./setup-musl.sh
export PATH="$PWD/musl-toolchain/bin:$PATH"
#
# Build mostly static image (Distroless Base Debian)
./build-mostly-static-image.sh
#
# Build fully static image (Alpine Static)
./build-alpine-static-image.sh
#
# Build fully static image (Scratch)
./build-static-image.sh
#
# Download upx
./setup-upx.sh
#
# Build fully static compressed image (Scratch UPX)
./build-static-upx-image.sh
#
docker images webserver