Skip to content

Commit e8dd2ef

Browse files
committed
[FIX] #11 docker 컨테이너 관련 수정
1 parent efa768e commit e8dd2ef

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,12 @@ jobs:
163163
sed -i 's|lehojun/studylink:.*|lehojun/studylink:${{ env.TAG }}|g' docker-compose.yml
164164
165165
# Deploy with no downtime
166-
sudo docker-compose up -d --no-deps --force-recreate app
167-
168-
# Check if container is running properly
166+
sudo docker-compose up -d --no-deps --force-recreate studylink-app
167+
168+
169+
# Check if container is running properly
169170
sleep 10
170-
if [ "$(sudo docker ps -q -f name=app)" ]; then
171+
if [ "$(sudo docker ps -q -f name=studylink-app)" ]; then
171172
echo "Deployment successful"
172173
# Tag successful deployment in a file for reference
173174
echo "${{ env.TAG }}" > /home/ubuntu/last_successful_deploy

0 commit comments

Comments
 (0)