Commit b4556ee 1 parent 151ab4a commit b4556ee Copy full SHA for b4556ee
File tree 1 file changed +22
-5
lines changed
1 file changed +22
-5
lines changed Original file line number Diff line number Diff line change 45
45
distribution : ' temurin'
46
46
47
47
- name : Build + unit tests
48
- run : ./gradlew --no-daemon :sd-app:build
48
+ run : ./gradlew :sd-app:build
49
49
50
- - name : Archive unit test reports
50
+ - name : Upload unit tests report
51
51
if : always()
52
52
uses : actions/upload-artifact@v4
53
53
with :
58
58
- name : Upload JAR
59
59
uses : actions/upload-artifact@v4
60
60
with :
61
- name : App jar
61
+ name : app- jar
62
62
path : sd-app/build/libs/service-discovery.jar
63
63
64
64
funcional-tests :
77
77
- name : Download JAR
78
78
uses : actions/download-artifact@v4
79
79
with :
80
- name : App jar
81
- path : sd-app/build/libs/service-discovery.jar
80
+ name : app- jar
81
+ path : sd-app/build/libs/
82
82
83
83
- name : Start Spring Boot app
84
84
run : java -jar sd-app/build/libs/service-discovery.jar &
@@ -103,3 +103,20 @@ jobs:
103
103
name : cucumber-tests-report
104
104
path : |
105
105
sd-ft/reports/cucumber-report.html
106
+
107
+
108
+ build-docker-image :
109
+ needs : functional-tests
110
+ runs-on : ubuntu-latest
111
+ steps :
112
+ - name : Checkout code
113
+ uses : actions/checkout@v4
114
+
115
+ - name : Download JAR
116
+ uses : actions/download-artifact@v4
117
+ with :
118
+ name : app-jar
119
+ path : sd-app/build/libs/
120
+
121
+ - name : Build Docker Image
122
+ run : docker build -t myapp:${{ github.sha }} sd-app/
You can’t perform that action at this time.
0 commit comments