-
Notifications
You must be signed in to change notification settings - Fork 6
78 lines (68 loc) · 2.71 KB
/
spring-boot-in-docker.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: spring-boot-in-docker
on:
push:
paths:
- 'spring-boot-in-docker/**'
- '.github/workflows/spring-boot-in-docker.yml'
pull_request:
paths:
- 'spring-boot-in-docker/**'
- '.github/workflows/spring-boot-in-docker.yml'
jobs:
docker-using-dockerfile-slim:
name: spring boot in docker using slim dockerfile
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build docker image
run: |
cd spring-boot-in-docker
docker build -t larmic/spring-boot-in-docker-using-dockerfile-slim:latest -f src/main/docker/Dockerfile-slim .
docker-using-dockerfile-jvm:
name: spring boot in docker using jvm dockerfile
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build docker image
run: |
cd spring-boot-in-docker
docker build -t larmic/spring-boot-in-docker-using-dockerfile-jvm:latest -f src/main/docker/Dockerfile-jvm .
# TODO enable me: java.io.FileNotFoundException: /home/runner/.m2/settings-security.xml (No such file or directory) @ server: github
# docker-using-maven-jvm:
# runs-on: ubuntu-latest
#
# strategy:
# matrix:
# java: [ 17,18 ]
#
# name: Java ${{ matrix.java }} compile
#
# steps:
# - name: Check out code into the Go module directory
# uses: actions/checkout@v2
#
# - name: Login to DockerHub
# uses: docker/login-action@v1
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
#
# - name: Setup java ${{ matrix.java }}
# uses: actions/setup-java@v1
# with:
# java-version: ${{ matrix.java }}
# - run: |
# cd spring-boot-in-docker
# mvn clean package -Pdocker