Fix syntax and property error
This commit is contained in:
parent
c7a9a8f2ab
commit
215f545119
@ -4,12 +4,10 @@ LOCAL_PATH="$1"
|
||||
DEPLOY_PATH="$2"
|
||||
RESTART_NGINX="$3"
|
||||
|
||||
env
|
||||
|
||||
rsync -hrz --delete -C --exclude=".*" -e ssh "$LOCAL_PATH" "deploy.sixohthree.com:/tmp/gitea_${GITHUB_RUN_NUMBER}_${GITHUB_SHA}"
|
||||
ssh deploy.sixohthree.com "dsh -M -c -r ssh -g webs -- rsync -hvrz --delete -C -e ssh deploy.sixohthree.com:/tmp/gitea_${GITHUB_RUN_NUMBER}_${GITHUB_SHA}/ $DEPLOY_PATH"
|
||||
ssh deploy.sixohthree.com "rm -rf /tmp/gitea_${GITHUB_RUN_NUMBER}_${GITHUB_SHA}"
|
||||
|
||||
if [ "$RESTART_NGINX" = "1"]; then
|
||||
if [ "$RESTART_NGINX" = "yes" ]; then
|
||||
ssh deploy.sixohthree.com "dsh -M -c -r ssh -g webs -- sudo systemctl reload nginx"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user