aboutsummaryrefslogtreecommitdiff
path: root/.albatros
blob: e190d1e909fa1c01a2f1523241db9d0bf0159822 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
set -euxo pipefail

nix build --print-build-logs .#packages.x86_64-unknown-linux-musl.debug

if [[ ! -z $TAG && ! -z $DOCKER_AUTH ]]; then

# Configure Docker Auth
mkdir .docker
cat > .docker/config.json <<EOF
{"auths":{"https://index.docker.io/v1/":{"auth":"${DOCKER_AUTH}"}}}
EOF
export DOCKER_CONFIG=`pwd`/.docker/

# Hack to circumvent "initializing source docker-archive:docker/linux.386.tar.gz: creating temporary file: open /var/tmp/docker-tar1213702538: no such file or directory"
mkdir -p /var/tmp/

# Release
nix run .#publish-static
nix run .#publish-garage
nix run .#publish-docker-hub

fi