forked from fediversity/fediversity
add woodpecker status: agents error `agent could not auth: individual agent not found by token: sql: no rows in result set`
30 lines
1.4 KiB
YAML
30 lines
1.4 KiB
YAML
when:
|
|
- event: manual
|
|
- event: push
|
|
branch: main
|
|
|
|
## NOTE: NixOps4 does not provide a good “dry run” mode, so we instead check
|
|
## proxies for resources, namely whether their `.#vmOptions.<machine>` and
|
|
## `.#nixosConfigurations.<machine>` outputs evaluate and build correctly, and
|
|
## whether we can dry run `infra/proxmox-*.sh` on them. This will not catch
|
|
## everything, and in particular not issues in how NixOps4 wires up the
|
|
## resources, but that is still something.
|
|
steps:
|
|
- name: check-resources
|
|
image: nixos/nix
|
|
commands:
|
|
- run: |
|
|
set -euC
|
|
echo ==================== [ VM Options ] ====================
|
|
machines=$(nix eval --impure --raw --expr 'with builtins; toString (attrNames (getFlake (toString ./.)).vmOptions)')
|
|
for machine in $machines; do
|
|
echo ~~~~~~~~~~~~~~~~~~~~~: $machine :~~~~~~~~~~~~~~~~~~~~~
|
|
nix build --extra-experimental-features 'nix-command flakes' .#checks.x86_64-linux.vmOptions-$machine
|
|
done
|
|
echo
|
|
echo ==================== [ NixOS Configurations ] ====================
|
|
machines=$(nix eval --impure --raw --expr 'with builtins; toString (attrNames (getFlake (toString ./.)).nixosConfigurations)')
|
|
for machine in $machines; do
|
|
echo ~~~~~~~~~~~~~~~~~~~~~: $machine :~~~~~~~~~~~~~~~~~~~~~
|
|
nix build --extra-experimental-features 'nix-command flakes' .#checks.x86_64-linux.nixosConfigurations-$machine
|
|
done
|