File tree Expand file tree Collapse file tree 1 file changed +11
-19
lines changed Expand file tree Collapse file tree 1 file changed +11
-19
lines changed Original file line number Diff line number Diff line change @@ -23,30 +23,22 @@ jobs:
23
23
shell : bash
24
24
25
25
- name : Build with Gradle
26
- run : ./gradlew clean build
26
+ run : ./gradlew build -x test
27
27
28
- - name : Docker Image Build
29
- uses : docker/build-push-action@v5
30
- with :
31
- context : .
32
- dockerfile : Dockerfile-dev
33
- push : false
34
- tags : ${{secrets.DOCKER_USERNAME}}/gachontable:latest
35
-
36
- - name : Docker Login
28
+ # Docker Hub 로그인
29
+ - name : Log in to Docker Hub
37
30
uses : docker/login-action@v3
38
31
with :
39
- username : ${{secrets.DOCKER_USERNAME}}
40
- password : ${{secrets.DOCKER_ACCESS_TOKEN}}
32
+ username : ${{ secrets.DOCKER_USERNAME }}
33
+ password : ${{ secrets.DOCKER_ACCESS_TOKEN }}
41
34
42
- - name : Docker Push
43
- uses : docker/build-push-action@v5
44
- with :
45
- context : .
46
- dockerfile : Dockerfile-dev
47
- push : true
48
- tags : ${{secrets.DOCKER_USERNAME}}/gachontable:latest
35
+ # Docker 이미지 빌드 및 푸시
36
+ - name : Build and push Docker image
37
+ run : |
38
+ docker build -t ${{ secrets.DOCKER_USERNAME }}/gachontable:latest -f Dockerfile-dev .
39
+ docker push ${{ secrets.DOCKER_USERNAME }}/gachontable:latest
49
40
41
+ # Docker Deploy
50
42
- name : Docker Deploy
51
43
uses : appleboy/ssh-action@master
52
44
with :
You can’t perform that action at this time.
0 commit comments