Update workflow

This commit is contained in:
albert 2024-09-08 11:57:55 +09:00
parent d2af84b8d2
commit 76be8d717c
Signed by: albert
GPG key ID: 3895DD267CA11BA9
2 changed files with 21 additions and 1 deletions

View file

@ -90,8 +90,10 @@ jobs:
ssh osaka-linode-01 'sudo systemctl restart podman-derp'
ssh frankfurt-linode-01 'sudo systemctl restart podman-derp'
ssh milan-linode-01 'sudo systemctl restart podman-derp'
ssh -qA warsaw-ovh-01 'sudo systemctl restart container@rdesktop'
ssh -qA framework-server 'sudo systemctl restart container@rdesktop'
sleep 30
deploy
deploy -sd
"
- name: "nixos-version (Post)"

View file

@ -50,6 +50,24 @@
git pull
docker compose up -d $argv
popd
'';
# Deploy-RS script
deploy-rs = ''
pushd /etc/nixos/git/
echo -en "Restarting DERP Relays.... "
echo -en "Osaka"
ssh -qA osaka-linode-01 "sudo systemctl restart podman-derp"
echo -en ", Frankfurt"
ssh -qA frankfurt-linode-01 "sudo systemctl restart podman-derp"
echo -en ", Milan"
ssh -qA milan-linode-01 "sudo systemctl restart podman-derp"
echo -e "... Done"
echo -en "Restarting rdesktop containers.... "
ssh -qA warsaw-ovh-01 "sudo systemctl restart container@rdesktop"
ssh -qA framework-server "sudo systemctl restart container@rdesktop"
echo -e "... Done"
deploy -s
popd
'';
# Build ISOs/SD Card Images
nixos-build-all-images = ''