diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-04-03 19:23:12 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-06-05 15:52:38 +0200 |
commit | f4fafaa8748183cd0dbd52c91bb66c9ede49cdf5 (patch) | |
tree | 42e8f6c451ce49ac150ca2f30f443215c3134871 /modules | |
parent | Add pkg ref for git (diff) | |
download | Spacebar-Open-Infrastructure-f4fafaa8748183cd0dbd52c91bb66c9ede49cdf5.tar.xz |
Move first webhook to after update check
Diffstat (limited to 'modules')
-rw-r--r-- | modules/auto-redeploy.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/auto-redeploy.nix b/modules/auto-redeploy.nix index 4b2a640..e3b81fc 100644 --- a/modules/auto-redeploy.nix +++ b/modules/auto-redeploy.nix @@ -18,7 +18,6 @@ #after = [ "network.target" ]; serviceConfig = { ExecStart = pkgs.writeShellScript "auto-redeploy" '' - ${pkgs.curl}/bin/curl -S -H "Content-Type: application/json" -d '{"username": "${config.networking.hostName} - redeploy", "content": "System started redeploy."}' ${secrets.webhooks.discord.deploy} cd /Spacebar-Open-Architecture #store current commit hash echo "Current commit: $(${pkgs.git}/bin/git rev-parse HEAD)" @@ -32,6 +31,7 @@ echo "Already up-to-date" exit 0 fi + ${pkgs.curl}/bin/curl -S -H "Content-Type: application/json" -d '{"username": "${config.networking.hostName} - redeploy", "content": "System started redeploy."}' ${secrets.webhooks.discord.deploy} #pull new commits ${pkgs.git}/bin/git pull #send commit log to discord |