albatros/.albatros
Quentin Dufour ca2fba1f48
All checks were successful
Albatros build
debug again build script
2023-03-16 13:36:41 +01:00

11 lines
347 B
Bash
Executable file

#!/usr/bin/env bash
set -euxo pipefail
nix build
if [[ $BRANCH == "main" && -f $SECRET_PATH ]]; then
mkdir -p /kaniko/.docker
cp $SECRET_PATH /kaniko/.docker/config.json
export HOME=/kaniko
sleep 6000
nix develop --command sh -c "executor --force --destination dxflrs/albatros:${COMMIT} --context dir://`pwd` --verbosity=debug" 1>&2
fi