From e1e5bc55b80969d064bbd25175d7eda8f590031e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sun, 5 Nov 2023 17:28:00 +0100 Subject: [PATCH] fix upload-hydra-jobs.service --- config/services/hydra.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/services/hydra.nix b/config/services/hydra.nix index 8ed624e7..7f008656 100644 --- a/config/services/hydra.nix +++ b/config/services/hydra.nix @@ -183,11 +183,11 @@ in { 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 -vvv + 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 -vvv + 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 ''; };