Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add recipes to copy keys to servers #2927

Merged
merged 11 commits into from
Jan 1, 2024
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,35 @@ deploy branch remote chain domain:

deploy-mainnet-balance branch="master" remote="ordinals/ord": (deploy branch remote "main" "balance.ordinals.net")

deploy-mainnet-equilibrium branch="master" remote="ordinals/ord": (deploy branch remote "main" "equilibrium.ordinals.net")

deploy-mainnet-stability branch="master" remote="ordinals/ord": (deploy branch remote "main" "stability.ordinals.net")

deploy-mainnet-alpha branch="master" remote="ordinals/ord": (deploy branch remote "main" "alpha.ordinals.net")

deploy-signet branch="master" remote="ordinals/ord": (deploy branch remote "signet" "signet.ordinals.net")

deploy-testnet branch="master" remote="ordinals/ord": (deploy branch remote "test" "testnet.ordinals.net")

deploy-regtest branch="master" remote="ordinals/ord": (deploy branch remote "regtest" "regtest.ordinals.net")

initialize-server-keys:
#!/usr/bin/env bash
set -euxo pipefail
rm -rf tmp/ssh
mkdir -p tmp/ssh
ssh-keygen -C ordinals -f tmp/ssh/id_ed25519 -t ed25519 -N ''
for SERVER in alpha balance regtest signet stability testnet; do
ssh-copy-id -i tmp/ssh/id_ed25519.pub root@$SERVER.ordinals.net
scp tmp/ssh/* root@$SERVER.ordinals.net:.ssh
done
rm -rf tmp/ssh

install-personal-key key="~/.ssh/id_ed25519.pub":
#!/usr/bin/env bash
set -euxo pipefail
for SERVER in alpha balance regtest signet stability testnet; do
ssh-copy-id -i {{ key }} root@$SERVER.ordinals.net
done

save-ord-dev-state domain="ordinals-dev.com":
$EDITOR ./deploy/save-ord-dev-state
scp ./deploy/save-ord-dev-state root@{{domain}}:~
Expand Down
Loading