From 561d9990bceae07514001a8eafd61d73bba9f390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Tue, 7 Nov 2023 18:35:04 +0100 Subject: [PATCH] disable hydra uploader --- config/services/hydra.nix | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/config/services/hydra.nix b/config/services/hydra.nix index 7f008656..48b0e66d 100644 --- a/config/services/hydra.nix +++ b/config/services/hydra.nix @@ -173,32 +173,4 @@ in { OnUnitActiveSec = 604800; }; }; - systemd.services."upload-hydra-results" = { - description = "Upload hydra build results"; - serviceConfig = { - Type = "oneshot"; - User = "hydra-queue-runner"; - Group = "hydra"; - }; - script = '' - set -ex - if [ -e /var/lib/hydra/queue-runner/uploading ]; then - cat /var/lib/hydra/queue-runner/uploading | xargs ${pkgs.nix}/bin/nix copy --to 's3://cache-chir-rs?scheme=https&endpoint=ams1.vultrobjects.com&secret-key=${config.sops.secrets."services/hydra/cache-key".path}&multipart-upload=true&compression=zstd&compression-level=15' -vv - rm /var/lib/hydra/queue-runner/uploading - fi - mv /var/lib/hydra/queue-runner/upload-queue /var/lib/hydra/queue-runner/uploading - cat /var/lib/hydra/queue-runner/uploading | xargs ${pkgs.nix}/bin/nix copy --to 's3://cache-chir-rs?scheme=https&endpoint=ams1.vultrobjects.com&secret-key=${config.sops.secrets."services/hydra/cache-key".path}&multipart-upload=true&compression=zstd&compression-level=15' -vv - rm /var/lib/hydra/queue-runner/uploading - ''; - }; - systemd.timers.upload-hydra-results = { - enable = true; - description = "Upload hydra build results"; - requires = ["upload-hydra-results.service"]; - wantedBy = ["multi-user.target"]; - timerConfig = { - OnBootSec = 300; - OnUnitActiveSec = 300; - }; - }; }