This commit is contained in:
iFargle 2024-02-15 10:02:18 +09:00
parent 3cf170c12f
commit bede5db265
2 changed files with 9 additions and 3 deletions

View file

@ -74,8 +74,6 @@ jobs:
cd /etc/nixos/git cd /etc/nixos/git
git pull git pull
deploy deploy
git commit -am \"[ACTIONS] deploy-rs updates (`date +%Y-%m-%d`)\"
git push
" "
- name: "nixos-version (Post)" - name: "nixos-version (Post)"
@ -93,6 +91,14 @@ jobs:
notification_title: '[ ${{ github.repository }}: ${{ github.workflow }} ] NixOS Deployed' notification_title: '[ ${{ github.repository }}: ${{ github.workflow }} ] NixOS Deployed'
notification_message: 'Deployment completed successfully.' notification_message: 'Deployment completed successfully.'
name: "Send Notification - Success" name: "Send Notification - Success"
- if: success()
name: "Push changes to git"
run: |
ssh -q -A -o StrictHostKeyChecking=no albert@framework-server \
"
git commit -am \"[ACTIONS] deploy-rs updates (`date +%Y-%m-%d`)\"
git push
"
- if: failure() - if: failure()
uses: https://git.sysctl.io/actions/gotify-action@master uses: https://git.sysctl.io/actions/gotify-action@master
with: with:

View file

@ -60,7 +60,7 @@
osaka-linode-01 = libx.mkHost { hostname = "osaka-linode-01"; }; osaka-linode-01 = libx.mkHost { hostname = "osaka-linode-01"; };
framework-server = libx.mkHost { hostname = "framework-server"; }; framework-server = libx.mkHost { hostname = "framework-server"; };
nuc-server = libx.mkHost { hostname = "nuc-server"; }; nuc-server = libx.mkHost { hostname = "nuc-server"; };
nixos-desktop = libx.mkHost { hostname = "nixos-desktop"; unfree = true; repo = "nixpkgs-unstable"; desktop = "hyprland"; theme = "tokyo-night"; }; nixos-desktop = libx.mkHost { hostname = "nixos-desktop"; unfree = true; desktop = "hyprland"; theme = "tokyo-night"; };
nixos-framework = libx.mkHost { hostname = "nixos-framework"; unfree = true; desktop = "hyprland"; theme = "sakura-day"; }; nixos-framework = libx.mkHost { hostname = "nixos-framework"; unfree = true; desktop = "hyprland"; theme = "sakura-day"; };
backups-rpi4 = libx.mkHost { hostname = "backups-rpi4"; system = "aarch64-linux"; type = "small"; }; backups-rpi4 = libx.mkHost { hostname = "backups-rpi4"; system = "aarch64-linux"; type = "small"; };
piaware-rpi4 = libx.mkHost { hostname = "piaware-rpi4"; system = "aarch64-linux"; type = "small"; }; piaware-rpi4 = libx.mkHost { hostname = "piaware-rpi4"; system = "aarch64-linux"; type = "small"; };