Skip to content

Commit

Permalink
Update deploy-main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alibabaedge authored Jul 26, 2024
1 parent aaca581 commit 8c3e24b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ jobs:
# Строим новый Docker образ
docker build -t frontend-main . &&
# Останавливаем старый контейнер, если он существует
# Stop old container
if [ \$(docker ps -q -f name=frontend-main) ]; then
docker stop frontend-main
docker rm frontend-main
fi &&
# Запускаем новый контейнер
# Start new container
docker run -d --name frontend-main -p 81:80 frontend-main
"

0 comments on commit 8c3e24b

Please sign in to comment.