feat: just prod-deploy with upload of locally build artifact

This commit is contained in:
Asger Juul Brunshøj 2025-02-26 13:35:28 +01:00
parent 91430f8985
commit 1d7374d387

View File

@ -36,7 +36,13 @@ cp-prod-datastore:
# Update ascend input and nixos-rebuild switch # Update ascend input and nixos-rebuild switch
prod-deploy: prod-deploy:
# Build on this machine (faster) and copy to prod /nix/store
nix copy --to ssh://192.168.1.3 .
# Update ascend input on prod machine nix configuration
ssh 192.168.1.3 'cd /home/plul/repos/gitlab.com/plul/nixexprs; just update-ascend' ssh 192.168.1.3 'cd /home/plul/repos/gitlab.com/plul/nixexprs; just update-ascend'
# Switch nix configuration on prod (should be fast as /nix/store should be pre-populated)
ssh -t 192.168.1.3 'cd /home/plul/repos/gitlab.com/plul/nixexprs; just switch' ssh -t 192.168.1.3 'cd /home/plul/repos/gitlab.com/plul/nixexprs; just switch'
prod-logs: prod-logs: