albatros/.albatros
Quentin 14f07e2609
Some checks reported errors
Albatros default
re-enable logging
2023-05-04 15:16:57 +02:00

23 lines
436 B
Bash
Executable file

#!/usr/bin/env bash
set -euxo pipefail
nix run .#build-static
nix run .#build-container
if [[ $BRANCH == "main" && -f $SECRET_PATH ]]; then
# Load secrets
set +x
source $SECRET_PATH
set -x
# Configure Docker Auth
cat > .docker.json <<EOF
{"auths":{"https://index.docker.io/v1/":{"auth":"${DOCKER_AUTH}"}}}
EOF
export DOCKER_CONFIG=`pwd`/.docker.json
nix run .#publish-static
nix run .#publish-garage
nix run .#publish-docker-hub
fi