fix(ci): 修复SSH主机配置 - 添加空值回退逻辑
Auto Merge PRs / auto-merge (push) Failing after 35s
Tests / lint (push) Failing after 1910h16m13s
CI/CD Pipeline / Frontend Lint (push) Failing after 1910h19m38s
Tests / test (push) Failing after 1910h16m14s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 1910h19m38s
Deploy / Deploy Production (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 1910h17m56s
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Build Production Runtime Images (push) Failing after 1910h16m14s
Auto Merge PRs / auto-merge (push) Failing after 35s
Tests / lint (push) Failing after 1910h16m13s
CI/CD Pipeline / Frontend Lint (push) Failing after 1910h19m38s
Tests / test (push) Failing after 1910h16m14s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 1910h19m38s
Deploy / Deploy Production (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 1910h17m56s
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Build Production Runtime Images (push) Failing after 1910h16m14s
This commit is contained in:
@@ -59,6 +59,7 @@ jobs:
|
||||
run: |
|
||||
set -eu
|
||||
staging_host="${STAGING_SSH_HOST:-47.98.113.167}"
|
||||
[ -z "$staging_host" ] && staging_host="47.98.113.167"
|
||||
staging_user="${STAGING_SSH_USER:-root}"
|
||||
mkdir -p ~/.ssh
|
||||
if [ -n "${STAGING_SSH_KEY:-}" ]; then
|
||||
@@ -85,6 +86,7 @@ jobs:
|
||||
run: |
|
||||
set -eu
|
||||
staging_host="${STAGING_SSH_HOST:-47.98.113.167}"
|
||||
[ -z "$staging_host" ] && staging_host="47.98.113.167"
|
||||
staging_user="${STAGING_SSH_USER:-root}"
|
||||
if [ -n "${STAGING_SSH_KEY:-}" ]; then
|
||||
key_path="$HOME/.ssh/id_ed25519"
|
||||
@@ -151,6 +153,7 @@ jobs:
|
||||
run: |
|
||||
set -eu
|
||||
production_host="${PRODUCTION_SSH_HOST:-47.98.113.167}"
|
||||
[ -z "$production_host" ] && production_host="47.98.113.167"
|
||||
production_user="${PRODUCTION_SSH_USER:-root}"
|
||||
mkdir -p ~/.ssh
|
||||
if [ -n "${PRODUCTION_SSH_KEY:-}" ]; then
|
||||
@@ -184,6 +187,7 @@ jobs:
|
||||
run: |
|
||||
set -eu
|
||||
production_host="${PRODUCTION_SSH_HOST:-47.98.113.167}"
|
||||
[ -z "$production_host" ] && production_host="47.98.113.167"
|
||||
production_user="${PRODUCTION_SSH_USER:-root}"
|
||||
mkdir -p ~/.ssh
|
||||
if [ -n "${PRODUCTION_SSH_KEY:-}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user