-
-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (32 loc) · 989 Bytes
/
cd-deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: CD - Deploy SyftBox Server
on:
workflow_dispatch:
inputs:
version:
description: "SyftBox Version to deploy"
type: string
default: latest
# Prevents concurrent runs of the same workflow
# while the previous run is still in progress
concurrency:
group: "CD - Deploy SyftBox Server"
cancel-in-progress: false
jobs:
deploy-syftbox-server:
runs-on: ubuntu-latest
steps:
- name: Checkout SyftBox repo
uses: actions/checkout@v4
- name: Install Just
uses: extractions/setup-just@v2
with:
just-version: "1.36.0"
- name: Set up SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SYFTBOX_SERVER_PRIVATE_KEY }}" > ~/.ssh/syftbox.pem
chmod 600 ~/.ssh/syftbox.pem
ssh-keyscan -H "20.168.10.234" >> ~/.ssh/known_hosts
- name: Deploy SyftBox Server
run: |
just deploy ~/.ssh/syftbox.pem ${{ inputs.version }}