Skip to content

Commit

Permalink
feat: 기본 셋팅
Browse files Browse the repository at this point in the history
  • Loading branch information
taewan2002 committed Feb 12, 2024
1 parent 4348558 commit 943469c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
key: ${{ secrets.NCP_KEY }}
envs: GITHUB_SHA
script: |
sudo systemctl stop nginx || true
# Pull the new image
echo "🐳 Docker Image Pull"
sudo docker pull taewan2002/docent-front:${{steps.current-time.outputs.formattedTime}}
Expand All @@ -40,7 +41,10 @@ jobs:
echo "🐳 Docker Stop & Start"
sudo docker stop docent-front
sudo docker run --rm -d --name docent-front -p 80:80 taewan2002/docent-front:${{steps.current-time.outputs.formattedTime}}
echo "▶️ Restarting Nginx service"
sudo systemctl start nginx || true
# Check
echo "🐳 Docker ps"
docker ps
Expand Down

0 comments on commit 943469c

Please sign in to comment.