File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,29 @@ name: Release
55jobs :
66 test :
77 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+ uses : actions/setup-java@v3.5.1
15+ with :
16+ distribution : ' temurin'
17+ java-version : ' 17'
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 }}
831 deployment :
932 needs : dockerbuild
1033 environment : production
You can’t perform that action at this time.
0 commit comments