Fix shellcheck warnings in build-flakes
Some checks failed
Run nix flake check / flake-check (push) Has been cancelled
Some checks failed
Run nix flake check / flake-check (push) Has been cancelled
This commit is contained in:
parent
dd255955ca
commit
3588fa670e
@ -7,8 +7,7 @@ git pull
|
|||||||
echo "Starting nixos-servers builds"
|
echo "Starting nixos-servers builds"
|
||||||
for host in $(nix flake show --json| jq -r '.nixosConfigurations | keys[]'); do
|
for host in $(nix flake show --json| jq -r '.nixosConfigurations | keys[]'); do
|
||||||
echo "Building $host"
|
echo "Building $host"
|
||||||
nixos-rebuild --verbose -L --flake ".#$host" build
|
if ! nixos-rebuild --verbose -L --flake ".#$host" build; then
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "Build failed for $host"
|
echo "Build failed for $host"
|
||||||
cat <<EOF | curl --data-binary @- "https://pushgw.home.2rjus.net/metrics/job/$JOB_NAME"
|
cat <<EOF | curl --data-binary @- "https://pushgw.home.2rjus.net/metrics/job/$JOB_NAME"
|
||||||
# TYPE build_flakes_error gauge
|
# TYPE build_flakes_error gauge
|
||||||
@ -30,8 +29,7 @@ echo "Building gunter"
|
|||||||
cd /root/nixos
|
cd /root/nixos
|
||||||
git pull
|
git pull
|
||||||
host="gunter"
|
host="gunter"
|
||||||
nixos-rebuild --verbose -L --flake ".#gunter" build
|
if ! nixos-rebuild --verbose -L --flake ".#gunter" build; then
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "Build failed for $host"
|
echo "Build failed for $host"
|
||||||
cat <<EOF | curl --data-binary @- "https://pushgw.home.2rjus.net/metrics/job/$JOB_NAME"
|
cat <<EOF | curl --data-binary @- "https://pushgw.home.2rjus.net/metrics/job/$JOB_NAME"
|
||||||
# TYPE build_flakes_error gauge
|
# TYPE build_flakes_error gauge
|
||||||
|
Loading…
x
Reference in New Issue
Block a user