-
Notifications
You must be signed in to change notification settings - Fork 305
38 lines (34 loc) · 1.05 KB
/
deploy-standalone.yml
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
---
# Deploys a standalone instance of pd, specifically to exercise the auto-https direct-serve logic.
name: Deploy standalone pd, preview
on:
# Only run when triggered manually.
workflow_dispatch:
workflow_call:
# Queue deploys serially.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
deploy:
name: deploy jawn
permissions:
contents: 'read'
id-token: 'write'
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: configure ssh identity
run: |-
mkdir -p ~/.ssh
chmod 700 ~/.ssh
echo "$SSH_PRIVKEY" > ~/.ssh/id_ed25519
echo "$SSH_HOSTKEYS" > ~/.ssh/known_hosts
env:
SSH_PRIVKEY: ${{ secrets.CI_RUNNER_SSH_PRIVKEY }}
SSH_HOSTKEYS: ${{ secrets.CI_RUNNER_SSH_HOSTKEYS }}
- name: deploy
run: |-
# TODO: iterate on this workflow in a separate PR. need the base in main first.
./deployments/scripts/redeploy-ci-fullnode-via-runner