fradrive/.gitlab-ci/upload-to-cache.sh
2021-09-15 13:33:32 +02:00

10 lines
295 B
Bash
Executable File

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p bash -p coreutils
set -eu
set -f # disable globbing
export IFS=' '
echo "Signing and uploading paths" $OUT_PATHS
exec nix copy --to "s3://nix-cache?scheme=https&endpoint=minio-gitlab-runner-cache:9000&secret-key=${NIX_CACHE_KEYFILE}" $OUT_PATHS