Skip to content

Commit 0646a2d

Browse files
committed
orion: deploy client to GCE VM via SSH
- add workflow_dispatch trigger so forks can run the workflow manually - build orion and scorpio in CI and upload artifacts - deploy binaries to a GCE VM over SSH using ORION_DEPLOY_HOST/ORION_DEPLOY_SSH_KEY - replace previous gcloud-based scp/ssh steps with plain ssh/scp Signed-off-by: Hongze Gao <15101764808@163.com>
1 parent f396aaf commit 0646a2d

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

.github/workflows/orion-client-deploy.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ concurrency:
1616

1717
jobs:
1818
build:
19-
# 允许 upstream 正常触发,同时在 fork 中可以通过 workflow_dispatch 手动触发
2019
if: ${{ github.repository == 'web3infra-foundation/mega' || github.event_name == 'workflow_dispatch' }}
2120
runs-on: ubuntu-latest
2221
timeout-minutes: 20
@@ -56,7 +55,6 @@ jobs:
5655
target/release/scorpio
5756
5857
deploy:
59-
# upstream 继续限制只在主仓库触发;在 fork 中可以通过 workflow_dispatch 手动触发
6058
if: ${{ github.repository == 'web3infra-foundation/mega' || github.event_name == 'workflow_dispatch' }}
6159
runs-on: ubuntu-latest
6260
needs: build
@@ -65,14 +63,9 @@ jobs:
6563
fail-fast: false
6664
matrix:
6765
include:
68-
# 单台 VM 示例:使用仓库 Secrets ORION_DEPLOY_HOST_1 / ORION_DEPLOY_SSH_KEY_1
6966
- name: orion-vm-1
7067
host_secret: ORION_DEPLOY_HOST_1
7168
ssh_key_secret: ORION_DEPLOY_SSH_KEY_1
72-
# 如需多台,再追加:
73-
# - name: orion-vm-2
74-
# host_secret: ORION_DEPLOY_HOST_2
75-
# ssh_key_secret: ORION_DEPLOY_SSH_KEY_2
7669

7770
env:
7871
ORION_DEPLOY_HOST: ${{ secrets[matrix.host_secret] }}

0 commit comments

Comments
 (0)