Skip to content

Commit 718ee1f

Browse files
committed
HOTFIX: ci-cd 스크립트 수정
1 parent 7ebcc36 commit 718ee1f

File tree

1 file changed

+11
-19
lines changed

1 file changed

+11
-19
lines changed

.github/workflows/ci-cd.yml

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,22 @@ jobs:
2323
shell: bash
2424

2525
- name: Build with Gradle
26-
run: ./gradlew clean build
26+
run: ./gradlew build -x test
2727

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
3730
uses: docker/login-action@v3
3831
with:
39-
username: ${{secrets.DOCKER_USERNAME}}
40-
password: ${{secrets.DOCKER_ACCESS_TOKEN}}
32+
username: ${{ secrets.DOCKER_USERNAME }}
33+
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
4134

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
4940
41+
# Docker Deploy
5042
- name: Docker Deploy
5143
uses: appleboy/ssh-action@master
5244
with:

0 commit comments

Comments
 (0)