From 3b268f67c66aef28bd4be4c50c0fd87d6573c6b6 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 4 Oct 2020 02:44:15 +0100 Subject: [PATCH] dockerpush: try to use the CI nix cache --- hack/dockerpush.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hack/dockerpush.sh b/hack/dockerpush.sh index 6273275122..e8a881ad35 100755 --- a/hack/dockerpush.sh +++ b/hack/dockerpush.sh @@ -8,4 +8,7 @@ set -euo pipefail ./hack/populate_secrets.sh -exec "$(nix-build --no-out-link ./docker-images.nix)" +export AWS_ACCESS_KEY_ID="$(nix eval --raw -f ./ ops.secrets.nixCache.AWS_ACCESS_KEY_ID)" +export AWS_SECRET_ACCESS_KEY="$(nix eval --raw -f ./ ops.secrets.nixCache.AWS_SECRET_ACCESS_KEY)" + +exec "$(nix-build --substituters "https://cache.nixos.org s3://lukegb-nix-cache?endpoint=storage.googleapis.com&trusted=1" --no-out-link ./docker-images.nix)"