albatros/.albatros

11 lines
334 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" 1>&2
fi