Distributed deployment

This commit is contained in:
Brandon Rozek 2024-11-29 16:27:19 -05:00
parent 40122dc318
commit 4acfd4fc4a
No known key found for this signature in database
GPG key ID: 26E457DA82C9F480
2 changed files with 13 additions and 6 deletions

View file

@ -68,10 +68,17 @@ jobs:
install -m 600 -D /dev/null ~/.ssh/id_rsa
echo "${{ secrets.BUILD_SSH_KEY }}" > ~/.ssh/id_rsa
echo "${{ secrets.HOST_KEY }}" > ~/.ssh/known_hosts
echo "Host brandonrozek.com
Hostname brandonrozek.com
user build
IdentityFile ~/.ssh/id_rsa" > ~/.ssh/config
cat <<EOL > ~/.ssh/config
Host Rozek-Cloud
Hostname 173.255.230.230
User build
IdentityFile ~/.ssh/id_rsa
Host Rozek-Stratus
Hostname 167.253.158.160
User build
IdentityFile ~/.ssh/id_rsa
EOL
- name: Deploy
run: ./deploy.sh

View file

@ -1,3 +1,3 @@
#!/usr/bin/env sh
rsync -Pazc --exclude=*.bak --delete public/ build@brandonrozek.com:brandonrozek/
rsync -Pazc --exclude=*.bak --delete public/ build@Rozek-Cloud:brandonrozek/
rsync -Pazc --exclude=*.bak --delete public/ build@Rozek-Stratus:brandonrozek/