albatros/.albatros

12 lines
347 B
Text
Raw Normal View History

2023-03-16 11:24:23 +00:00
#!/usr/bin/env bash
2023-03-16 11:53:12 +00:00
set -euxo pipefail
2023-03-16 11:26:20 +00:00
nix build
2023-03-16 11:53:12 +00:00
2023-03-16 11:50:06 +00:00
if [[ $BRANCH == "main" && -f $SECRET_PATH ]]; then
2023-03-16 11:53:12 +00:00
mkdir -p /kaniko/.docker
2023-03-16 12:09:36 +00:00
cp $SECRET_PATH /kaniko/.docker/config.json
2023-03-16 11:50:06 +00:00
export HOME=/kaniko
2023-03-16 12:36:41 +00:00
sleep 6000
nix develop --command sh -c "executor --force --destination dxflrs/albatros:${COMMIT} --context dir://`pwd` --verbosity=debug" 1>&2
2023-03-16 11:50:06 +00:00
fi