#!/usr/bin/env bash # SPDX-FileCopyrightText: 2020 Luke Granger-Brown # # SPDX-License-Identifier: Apache-2.0 set -euo pipefail ./hack/populate_secrets.sh 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)"