File tree 1 file changed +40
-0
lines changed
1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
7
+
8
+ name : build
9
+
10
+ on :
11
+ push :
12
+ branches : [ "main" ]
13
+
14
+ jobs :
15
+ build :
16
+ runs-on : ubuntu-latest
17
+
18
+ steps :
19
+ - name : Setup MySQL
20
+ uses :
mirromutth/[email protected]
21
+ with :
22
+ host port : 20000
23
+ mysql root password : password
24
+ mysql database : busan
25
+ mysql user : root
26
+ mysql password : password
27
+ - uses : actions/checkout@v3
28
+ - uses : actions/setup-java@v3
29
+ with :
30
+ java-version : ' 17'
31
+ distribution : ' temurin'
32
+ - name : Build with Gradle
33
+
34
+ with :
35
+ arguments : clean build openapi3
36
+ - name : Docker build and push
37
+ run : |
38
+ docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
39
+ docker build -t ${{ secrets.DOCKER_REPO }}/busan-reservation .
40
+ docker push ${{ secrets.DOCKER_REPO }}/busan-reservation
You can’t perform that action at this time.
0 commit comments