Skip to content

Commit 85844b4

Browse files
committed
[CHORE] 주석 삭제
1 parent 3d23733 commit 85844b4

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/workflows/cicd.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,22 +101,17 @@ jobs:
101101
username: ${{secrets.SSH_USER}}
102102
key: ${{ secrets.SSH_PEM_KEY }}
103103
envs: GITHUB_SHA
104-
# 주의 : 실행중인 컨테이너 전부 종료
105104
script: |
106-
# 기존 컨테이너 종료 및 제거
107105
echo "Stopping and removing existing Docker containers..."
108106
sudo docker rm -f $(sudo docker ps -aq) || echo "No containers to remove"
109107
110-
# 최신 Docker 이미지 가져오기
111108
echo "Pulling the latest Docker image..."
112109
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }}
113110
114-
# Docker Compose를 통해 새 컨테이너 실행
115111
echo "Starting deployment with Docker Compose..."
116112
117113
cd ~
118114
sudo docker-compose up -d --build
119-
120-
# 사용하지 않는 Docker 이미지 정리
115+
121116
echo "Cleaning up unused Docker images..."
122117
sudo docker image prune -f || echo "No images to prune"

0 commit comments

Comments
 (0)