log on stderr + create /var/tmp just in case...
Some checks reported errors
Albatros default

This commit is contained in:
Quentin 2023-05-04 15:29:41 +02:00
parent 14f07e2609
commit 0e5bbbb2a0
Signed by: quentin
GPG key ID: E9602264D639FF68
2 changed files with 7 additions and 3 deletions

View file

@ -16,6 +16,10 @@ cat > .docker.json <<EOF
EOF EOF
export DOCKER_CONFIG=`pwd`/.docker.json export DOCKER_CONFIG=`pwd`/.docker.json
# 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-static
nix run .#publish-garage nix run .#publish-garage
nix run .#publish-docker-hub nix run .#publish-docker-hub

View file

@ -126,7 +126,7 @@
publish-static = pkgs.writeScriptBin "albatros-push-static" '' publish-static = pkgs.writeScriptBin "albatros-push-static" ''
RTAG=''${TAG:-$COMMIT} RTAG=''${TAG:-$COMMIT}
echo "selected release tag is $RTAG" echo "selected release tag is $RTAG"
${alba} static push -t albatros:$RTAG static/ 's3://download.deuxfleurs.org?endpoint=garage.deuxfleurs.fr&s3ForcePathStyle=true&region=garage' ${alba} static push -t albatros:$RTAG static/ 's3://download.deuxfleurs.org?endpoint=garage.deuxfleurs.fr&s3ForcePathStyle=true&region=garage' 1>&2
''; '';
build-container = pkgs.writeScriptBin "albatros-build-container" '' build-container = pkgs.writeScriptBin "albatros-build-container" ''
nix build --print-build-logs .#packages.x86_64-linux.container -o docker/linux.amd64.tar.gz nix build --print-build-logs .#packages.x86_64-linux.container -o docker/linux.amd64.tar.gz
@ -137,12 +137,12 @@
publish-garage = pkgs.writeScriptBin "albatros-publish-garage" '' publish-garage = pkgs.writeScriptBin "albatros-publish-garage" ''
RTAG=''${TAG:-$COMMIT} RTAG=''${TAG:-$COMMIT}
echo "selected release tag is $RTAG" echo "selected release tag is $RTAG"
${alba} container push -t albatros:$RTAG docker/ 's3://registry.deuxfleurs.org?endpoint=garage.deuxfleurs.fr&s3ForcePathStyle=true&region=garage' ${alba} container push -t albatros:$RTAG docker/ 's3://registry.deuxfleurs.org?endpoint=garage.deuxfleurs.fr&s3ForcePathStyle=true&region=garage' 1>&2
''; '';
publish-docker-hub = pkgs.writeScriptBin "albatros-publish-dockerhub" '' publish-docker-hub = pkgs.writeScriptBin "albatros-publish-dockerhub" ''
RTAG=''${TAG:-$COMMIT} RTAG=''${TAG:-$COMMIT}
echo "selected release tag is $RTAG" echo "selected release tag is $RTAG"
${alba} container push -t albatros:$RTAG docker/ "docker://docker.io/superboum/albatros:$RTAG" ${alba} container push -t albatros:$RTAG docker/ "docker://docker.io/superboum/albatros:$RTAG" 1>&2
''; '';
}; };
}); });