Skip to content

Commit

Permalink
fix: docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhJae committed Sep 3, 2024
1 parent caf3ec5 commit c1bab29
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to Server
name: Deploy to server

on:
push:
Expand Down Expand Up @@ -26,8 +26,9 @@ jobs:
ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }} << 'ENDSSH'
cd ${{ secrets.SERVER_DEPLOY_PATH }}
git pull origin main
docker stop ${{ secrets.APP_NAME }} || true
docker rm ${{ secrets.APP_NAME }} || true
docker system prune -f
docker build -t ${{ secrets.APP_NAME }} .
sudo docker stop ${{ secrets.APP_NAME }} || true
sudo docker rm ${{ secrets.APP_NAME }} || true
sudo docker system prune -f
sudo docker build -t ${{ secrets.APP_NAME }} .
sudo docker-compose up -d
ENDSSH

0 comments on commit c1bab29

Please sign in to comment.