File tree 1 file changed +23
-0
lines changed
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,29 @@ name: Release
5
5
jobs :
6
6
test :
7
7
uses : remotemobprogramming/timer/.github/workflows/test.yml@main
8
+ dockerbuild :
9
+ needs : test
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v3
13
+ - name : Setup Java JDK
14
+
15
+ with :
16
+ distribution : ' zulu'
17
+ java-version : ' 21'
18
+ - name : Login to DockerHub
19
+ uses : docker/login-action@v2
20
+ with :
21
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
22
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
23
+ - name : Docker Build
24
+ run : ./mvnw spring-boot:build-image
25
+ - name : Docker Tag
26
+ run : docker tag remotemobprogramming/mob-timer remotemobprogramming/mob-timer:${{ github.sha }}
27
+ - name : Docker Push Latest
28
+ run : docker push remotemobprogramming/mob-timer:latest
29
+ - name : Docker Push Tag
30
+ run : docker push remotemobprogramming/mob-timer:${{ github.sha }}
8
31
deployment :
9
32
needs : test
10
33
environment : production
You can’t perform that action at this time.
0 commit comments