readable scripts
This commit is contained in:
@@ -54,4 +54,16 @@ runs:
|
||||
)
|
||||
|
||||
ssh "${SSH_OPTS[@]}" "$DEPLOY_USER@$DEPLOY_HOST" \
|
||||
"APP_KEY=$(printf '%q' "$APP_KEY") AUTO_DEPLOY_PATH=$(printf '%q' "$AUTO_DEPLOY_PATH") AUTO_DEPLOY_BRANCH=$(printf '%q' "$AUTO_DEPLOY_BRANCH") bash -se -c 'cd \"\$AUTO_DEPLOY_PATH\"; git checkout \"\$AUTO_DEPLOY_BRANCH\"; git pull --ff-only; git submodule sync --recursive; git submodule update --init --recursive; echo \"[remote] auto-deploy repo updated\"; ./common/deploy.sh finalize \"\$APP_KEY\"; echo \"[remote] \$APP_KEY deployment finalized\"'"
|
||||
"APP_KEY=$(printf '%q' "$APP_KEY") \
|
||||
AUTO_DEPLOY_PATH=$(printf '%q' "$AUTO_DEPLOY_PATH") \
|
||||
AUTO_DEPLOY_BRANCH=$(printf '%q' "$AUTO_DEPLOY_BRANCH") \
|
||||
bash -se" << 'EOF'
|
||||
cd "$AUTO_DEPLOY_PATH"
|
||||
git checkout "$AUTO_DEPLOY_BRANCH"
|
||||
git pull --ff-only
|
||||
git submodule sync --recursive
|
||||
git submodule update --init --recursive
|
||||
echo "[remote] auto-deploy repo updated"
|
||||
./common/deploy.sh finalize "$APP_KEY"
|
||||
echo "[remote] $APP_KEY deployment finalized"
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user