Skip to content

Commit

Permalink
#576 [feat] bash 명령어 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
sohyundoh committed Jan 30, 2025
1 parent ab808d9 commit 9277cea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/PROD-NEW-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,11 @@ jobs:
username: ${{ secrets.NEW_PROD_USER }}
key: ${{ secrets.NEW_PROD_SSH }}
script: |
docker-compose up -d --build --remove-orphans
cd ~
if docker ps | grep -q redis && docker ps | grep -q nginx; then
docker-compose pull app
docker-compose up -d --no-deps app
else
docker-compose pull
docker-compose up -d --build --remove-orphans
fi
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version : "3.8"
services:
app:
image: "mile-server"
image: "mile1217/mile-server"
container_name: mile
ports:
- "8080:8080"
Expand Down

0 comments on commit 9277cea

Please sign in to comment.