aboutsummaryrefslogtreecommitdiff
path: root/.albatros
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-05-18 11:56:10 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-05-18 11:56:10 +0200
commit115dd077ca8d50e92f898d604e731be04ed2e1be (patch)
tree3ea701d033456689695a906df3353c8573a1f7f4 /.albatros
parent24fed41288531bf3bf69657eaf3287ff545d0254 (diff)
downloadaerogramme-115dd077ca8d50e92f898d604e731be04ed2e1be.tar.gz
aerogramme-115dd077ca8d50e92f898d604e731be04ed2e1be.zip
add build scripts with alba
Diffstat (limited to '.albatros')
-rwxr-xr-x.albatros19
1 files changed, 19 insertions, 0 deletions
diff --git a/.albatros b/.albatros
index 6439de6..e190d1e 100755
--- a/.albatros
+++ b/.albatros
@@ -2,3 +2,22 @@
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