Skip to content

Commit 4f26ed8

Browse files
hello-spring-ci
1 parent d917c29 commit 4f26ed8

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Hello Spring Boot App to Docker
2+
3+
on:
4+
push
5+
6+
jobs:
7+
build-test:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout Code
12+
uses: actions/checkout@v4
13+
14+
- name: Setup JDK
15+
uses: actions/setup-java@v5
16+
with:
17+
distribution: 'temurin' # See 'Supported distributions' for available options
18+
java-version: '21'
19+
20+
- name: Build and Test (Maven)
21+
working-directory: docker/app1-hello/springboot/hello-spring
22+
run: mvn -B clean verify
23+
24+
- name: Upload Test Reports
25+
uses: actions/upload-artifact@v4
26+
with:
27+
name: test-reports
28+
path: docker/app1-hello/springboot/hello-spring/target/surefire-reports
29+
30+
docker-build-push:
31+
runs-on: ubuntu-latest
32+
needs: build-test
33+
34+
steps:
35+
- name: Checkout Code
36+
run: echo ""
37+
38+
- name: Setup JDK
39+
run: echo ""
40+
41+
- name: Build JAR for Docker
42+
run: echo ""
43+
44+
- name: Login to DockerHub
45+
run: echo ""
46+
47+
- name: Build and Push Docker Image
48+
run: echo ""

0 commit comments

Comments
 (0)