diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-04-03 19:18:27 +0200 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-06-05 15:52:38 +0200 |
commit | d348c5b7c107c13b3f61c0f481e5094a409dabd3 (patch) | |
tree | dbff207c89d57a05722e0cd5ba65a881836c0d88 /modules/auto-redeploy.nix | |
parent | Silence curl (diff) | |
download | Spacebar-Open-Infrastructure-d348c5b7c107c13b3f61c0f481e5094a409dabd3.tar.xz |
Move auto redeploy to script
Diffstat (limited to '')
-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 33b56dd..3e93d06 100644 --- a/modules/auto-redeploy.nix +++ b/modules/auto-redeploy.nix @@ -17,7 +17,7 @@ #wantedBy = [ "multi-user.target" ]; #after = [ "network.target" ]; serviceConfig = { - ExecStart = '' + 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 |