diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-05-18 14:41:20 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-05-18 14:41:20 +0200 |
commit | 05764ba016ac5156ff9779f3ab224ab008bed724 (patch) | |
tree | 35aba2f07afa6e0b631f640fff81e6456f6e50dc | |
parent | c55337f9d30f88650908794ba9511bdda4c50711 (diff) | |
download | aerogramme-05764ba016ac5156ff9779f3ab224ab008bed724.tar.gz aerogramme-05764ba016ac5156ff9779f3ab224ab008bed724.zip |
fix build container
-rw-r--r-- | flake.nix | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -146,30 +146,35 @@ alba = albatros.alba; build-static = gpkgs.writeScriptBin "aerogramme-build-static" '' + set -euxo pipefail nix build --print-build-logs .#packages.x86_64-unknown-linux-musl.aerogramme -o static/linux/amd64/aerogramme nix build --print-build-logs .#packages.aarch64-unknown-linux-musl.aerogramme -o static/linux/arm64/aerogramme nix build --print-build-logs .#packages.armv6l-unknown-linux-musleabihf.aerogramme -o static/linux/arm/aerogramme ''; publish-static = gpkgs.writeScriptBin "aerogramme-push-static" '' + set -euxo pipefail RTAG=''${TAG:-$COMMIT} echo "selected release tag is $RTAG" ${alba} static push -t aerogramme:$RTAG static/ 's3://download.deuxfleurs.org?endpoint=garage.deuxfleurs.fr&s3ForcePathStyle=true®ion=garage' 1>&2 ''; build-container = gpkgs.writeScriptBin "aerogramme-build-container" '' + set -euxo pipefail nix build --print-build-logs .#packages.x86_64-unknown-linux-musl.container -o docker/linux.amd64.tar.gz - nix build --print-build-logs .#packages.armv6l-unknown-linux-musl.container -o docker/linux.arm.tar.gz - nix build --print-build-logs .#packages.aarch64-unknown-linux-musleabihf.container -o docker/linux.arm64.tar.gz + nix build --print-build-logs .#packages.aarch64-unknown-linux-musl.container -o docker/linux.arm64.tar.gz + nix build --print-build-logs .#packages.armv6l-unknown-linux-musleabihf.container -o docker/linux.arm.tar.gz ''; publish-garage = gpkgs.writeScriptBin "aerogramme-publish-garage" '' + set -euxo pipefail RTAG=''${TAG:-$COMMIT} echo "selected release tag is $RTAG" ${alba} container push -t aerogramme:$RTAG docker/ 's3://registry.deuxfleurs.org?endpoint=garage.deuxfleurs.fr&s3ForcePathStyle=true®ion=garage' 1>&2 ''; publish-docker-hub = gpkgs.writeScriptBin "aerogramme-publish-dockerhub" '' + set -euxo pipefail RTAG=''${TAG:-$COMMIT} echo "selected release tag is $RTAG" ${alba} container push -t aerogramme:$RTAG docker/ "docker://docker.io/dxflrs/aerogramme:$RTAG" 1>&2 |