serokell / deploy-rs

A simple multi-profile Nix-flake deploy tool.
Other
1.33k stars 101 forks source link

Update example to make it work #247

Closed ivarmedi closed 4 months ago

ivarmedi commented 9 months ago

I might be misunderstanding things, but I had to add the hostname to the node level to be able to deploy. Feel free to disregard if I'm doing something dumb

trespaul commented 5 months ago

Had the same issue, glad it wasn't just me. Result of deploy .#<hostname> was

🚀 ℹī¸ [deploy] [INFO] Running checks for flake in /home/paul/Config
warning: Git tree '/home/paul/Config' is dirty
warning: unknown flake output 'deploy'
error: builder for '/nix/store/y9jml39c6l2fi7dddkv515jhc0a0l06b-jsonschema-deploy-system.drv' failed with exit code 1;
       last 2 log lines:
       > Schema validation errors were encountered.
       >   /nix/store/wf9ihj48llx007r0nzfg4g4500rww0vy-deploy.json::$.nodes.<hostname>: 'hostname' is a required property
       For full logs, run 'nix log /nix/store/y9jml39c6l2fi7dddkv515jhc0a0l06b-jsonschema-deploy-system.drv'.
🚀 ❌ [deploy] [ERROR] Failed to check deployment: Nix checking command resulted in a bad exit code: Some(1)