albatros/.albatros
2023-04-28 11:41:19 +02:00

12 lines
499 B
Bash
Executable file

#!/usr/bin/env bash
set -euxo pipefail
nix build --print-build-logs
#if [[ $BRANCH == "main" && -f $SECRET_PATH ]]; then
# mkdir -p /kaniko/.docker
# cp $SECRET_PATH /kaniko/.docker/config.json
# export HOME=/kaniko
# nix develop --command sh -c "executor --force --destination dxflrs/albatros:${COMMIT} --context dir://`pwd` --verbosity=debug" 1>&2
#fi
#
# ./alba static push -t albatros:0.9 df/ 's3://download.deuxfleurs.org?endpoint=garage.deuxfleurs.fr&s3ForcePathStyle=true&region=garage'