Skip to content

Commit

Permalink
fix: (ci) 测试自动重启容器脚本错误
Browse files Browse the repository at this point in the history
  • Loading branch information
stack-wuh committed Dec 12, 2021
1 parent feb8108 commit 631220b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
needs: [push_to_docker]
env:
TAG_REF: ${{ github.ref }}
GITHUB_CONTEXT: ${{ toJson(github) }}
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
Expand All @@ -62,6 +63,9 @@ jobs:
docker ps -a
tag=`echo ${TAG_REF}|awk -F/ '{print $3}'`
echo "[github bot] version:" ${tag}
echo ${TAG_REF}
echo "$GITHUB_CONTEXT"
cd /home/next-web-app/frontend
./bin/clear-docker.sh
./bin/build-container.sh ${tag}
./bin/build-container.sh ${tag} hello world

0 comments on commit 631220b

Please sign in to comment.