Skip to content

Commit

Permalink
Merge pull request #54 from BaeJunH0/feat/#37-cicd
Browse files Browse the repository at this point in the history
fix : cicd 구동 안되는 문제 해결 시도
  • Loading branch information
BaeJunH0 authored Nov 30, 2024
2 parents 8739439 + bf58a8d commit b327e73
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ jobs:
username: ubuntu
key: ${{ secrets.SERVER_SSH_KEY }}
script: |
sudo docker rm -f $(docker ps -qa)
sudo docker pull ${{ secrets.DOCKER_REPO }}/directors-dev
# 기존 컨테이너들이 있으면 제거
CONTAINERS=$(docker ps -qa)
if [ -n "$CONTAINERS" ]; then
sudo docker rm -f $CONTAINERS
fi
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/alumni_link
docker-compose up -d
docker image prune -f

0 comments on commit b327e73

Please sign in to comment.