Skip to content

Commit

Permalink
Merge pull request #57 from stack-wuh/feat-ci
Browse files Browse the repository at this point in the history
fix: (ci) 测试自动重启容器脚本错误
  • Loading branch information
stack-wuh committed Dec 12, 2021
2 parents 0452a74 + 9fbd983 commit a2d6130
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bin/build-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@

set -e

echo '全部参数:' $@
echo 'version:' $1

echo '============== docker build contianer ==========='
echo '构建container的版本号: ' $1

docker ps -a | grep 'frontend.' | awk '{print $1}' | xargs docker stop
docker ps -a | grep 'frontend.' | awk '{print $1}' | xargs docker rm
docker pull shadowu/wuh.site:latest
docker container run --name frontend.v$1 -d -p 3101:3001 --restart=always shadowu/wuh.site:latest
docker container run --name frontend.$1 -d -p 3100:3000 --restart=always shadowu/wuh.site:latest

systemctl status docker
systemctl restart nginx
Expand Down

2 comments on commit a2d6130

@vercel
Copy link

@vercel vercel bot commented on a2d6130 Dec 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment failed with the following error:

The most recent charge for your active payment method has failed. Please update it here: https://vercel.com/teams/163m/settings/billing.

@vercel
Copy link

@vercel vercel bot commented on a2d6130 Dec 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.