albatros/.albatros
Quentin Dufour 664dc72ec5
All checks were successful
Albatros default
rework building
2023-05-04 11:00:37 +02:00

26 lines
1.4 KiB
Bash
Executable file

#!/usr/bin/env bash
set -euxo pipefail
nix build --print-build-logs .#packages.x86_64-linux.ci -o df/linux/amd64/ci
nix build --print-build-logs .#packages.i686-linux.ci -o df/linux/386/ci
nix build --print-build-logs .#packages.aarch64-linux.ci -o df/linux/arm64/ci
nix build --print-build-logs .#packages.armv6l-linux.ci -o df/linux/arm/ci
nix build --print-build-logs .#packages.x86_64-linux.alba -o df/linux/amd64/alba
nix build --print-build-logs .#packages.i686-linux.alba -o df/linux/386/alba
nix build --print-build-logs .#packages.aarch64-linux.alba -o df/linux/arm64/alba
nix build --print-build-logs .#packages.armv6l-linux.alba -o df/linux/arm/alba
nix build --print-build-logs .#packages.x86_64-linux.container -o docker/linux.amd64.tar.gz
nix build --print-build-logs .#packages.armv6l-linux.container -o docker/linux.arm.tar.gz
nix build --print-build-logs .#packages.aarch64-linux.container -o docker/linux.arm64.tar.gz
nix build --print-build-logs .#packages.i686-linux.container -o docker/linux.386.tar.gz
#if [[ $BRANCH == "main" && -f $SECRET_PATH ]]; then
# mkdir -p /kaniko/.docker
# cp $SECRET_PATH /kaniko/.docker/config.json
# export HOME=/kaniko
# nix develop --command sh -c "executor --force --destination dxflrs/albatros:${COMMIT} --context dir://`pwd` --verbosity=debug" 1>&2
#fi
#
# ./alba static push -t albatros:0.9 df/ 's3://download.deuxfleurs.org?endpoint=garage.deuxfleurs.fr&s3ForcePathStyle=true&region=garage'