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

Update server names in justfile #2954

Merged
merged 4 commits into from
Jan 9, 2024
Merged
Changes from all 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
15 changes: 12 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,34 @@ deploy-signet branch='master' remote='ordinals/ord': (deploy branch remote 'sign

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

servers := 'alpha bravo charlie regtest signet testnet'

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
for server in {{ servers }}; 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
for server in {{ servers }}; do
ssh-copy-id -i {{ key }} root@$server.ordinals.net
done

server-keys:
#!/usr/bin/env bash
set -euxo pipefail
for server in {{ servers }}; do
ssh root@$server.ordinals.net cat .ssh/authorized_keys
done

log unit='ord' domain='alpha.ordinals.net':
ssh root@{{domain}} 'journalctl -fu {{unit}}'

Expand Down
Loading