2020-10-04 01:36:18 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
./hack/populate_secrets.sh
|
|
|
|
|
2020-10-04 01:44:15 +00:00
|
|
|
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)"
|