albatros/.albatros
Quentin acbf7c5fcd
Some checks reported errors
Albatros build
fix path again
2023-03-16 13:09:36 +01:00

11 lines
329 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
nix develop --command sh -c "executor --force --destination dxflrs/albatros:${COMMIT} --context dir://`pwd` --verbosity=debug"
fi