image: debian/stretch packages: - curl triggers: - condition: failure action: email to: EuAndreh sources: - https://git.sr.ht/~euandreh/vps - https://git.sr.ht/~euandreh/vps-state secrets: - b1f49116-7515-40ef-857c-42e4519b8472 - 7084b7c7-12be-4509-8927-81ba6eeb1fc0 tasks: tasks: - setup: | curl https://nixos.org/nix/install | sh echo '. ~/.nix-profile/etc/profile.d/nix.sh' >> ~/.buildenv - tests: | cd vps/ nix-build -A test - deploy: | cd vps/ nix-shell --run "bash -c ./provision.sh"