Update workflows

This commit is contained in:
albert 2025-01-26 11:01:35 -08:00
parent 71d7599074
commit 31cdb9e45d
Signed by: albert
GPG key ID: 3895DD267CA11BA9
3 changed files with 14 additions and 14 deletions

View file

@ -1,6 +1,6 @@
# yamllint disable rule:line-length rule:truthy
---
name: Cron - deploy-rs
name: deploy-rs
run-name: ${{ github.actor }} - deploy-rs
on:
schedule:
@ -39,14 +39,14 @@ jobs:
- name: "nixos-version (Pre)"
run: |
ssh -q -A -o StrictHostKeyChecking=no albert@warsaw-ovh-01 \
ssh -q -A -o StrictHostKeyChecking=no albert@warsaw-ovh-01.servers.hs.net \
"
nixos-version
"
- name: "SSH and Deploy"
run: |
ssh -q -A -o StrictHostKeyChecking=no albert@warsaw-ovh-01 \
ssh -q -A -o StrictHostKeyChecking=no albert@warsaw-ovh-01.servers.hs.net \
"
set -x
eval (ssh-agent -c)
@ -54,10 +54,10 @@ jobs:
env | grep SSH
cd /etc/nixos/git
git pull
ssh -qA osaka-linode-01 'sudo systemctl restart podman-derp'
ssh -qA frankfurt-linode-01 'sudo systemctl restart podman-derp'
ssh -qA milan-linode-01 'sudo systemctl restart podman-derp'
ssh -qA warsaw-ovh-01 'sudo systemctl restart container@rdesktop'
ssh -qA osaka-linode-01.servers.hs.net 'sudo systemctl restart podman-derp'
ssh -qA frankfurt-linode-01.servers.hs.net 'sudo systemctl restart podman-derp'
ssh -qA milan-linode-01.servers.hs.net 'sudo systemctl restart podman-derp'
ssh -qA warsaw-ovh-01.servers.hs.net 'sudo systemctl restart container@rdesktop'
sleep 30
deploy -sd
deploy -sd
@ -65,7 +65,7 @@ jobs:
- name: "nixos-version (Post)"
run: |
ssh -q -A -o StrictHostKeyChecking=no albert@warsaw-ovh-01 \
ssh -q -A -o StrictHostKeyChecking=no albert@warsaw-ovh-01.servers.hs.net \
"
nixos-version
"

View file

@ -39,7 +39,7 @@ jobs:
- name: "SSH and Update / Check"
run: |
ssh -q -A -o StrictHostKeyChecking=no albert@warsaw-ovh-01 \
ssh -q -A -o StrictHostKeyChecking=no albert@warsaw-ovh-01.servers.hs.net \
"
set -x
eval (ssh-agent -c)
@ -54,7 +54,7 @@ jobs:
- if: success()
name: "Sucess: Git Commit & Push"
run: |
ssh -q -A -o StrictHostKeyChecking=no albert@warsaw-ovh-01 \
ssh -q -A -o StrictHostKeyChecking=no albert@warsaw-ovh-01.servers.hs.net \
"
set -x
eval (ssh-agent -c)

View file

@ -1,7 +1,7 @@
# yamllint disable rule:line-length rule:truthy
---
name: Cron - Update Steam Deck
run-name: ${{ github.actor }} - update-steamdeck
run-name: ${{ github.actor }} - update-steamdeck.albert.hs.net
on:
schedule:
- cron: '0 2 * * 1'
@ -39,14 +39,14 @@ jobs:
- name: "nixos-version (Pre)"
run: |
ssh -q -A -o StrictHostKeyChecking=no albert@steamdeck \
ssh -q -A -o StrictHostKeyChecking=no albert@steamdeck.albert.hs.net \
"
nixos-version
"
- name: "SSH and Deploy"
run: |
ssh -o StrictHostKeyChecking=no albert@steamdeck \
ssh -o StrictHostKeyChecking=no albert@steamdeck.albert.hs.net \
"
set -x
source ~/.config/fish/config.fish
@ -58,7 +58,7 @@ jobs:
- name: "nixos-version (Post)"
run: |
ssh -q -A -o StrictHostKeyChecking=no albert@steamdeck \
ssh -q -A -o StrictHostKeyChecking=no albert@steamdeck.albert.hs.net \
"
nixos-version
"