Auto-build website to m-labs-intl.com #92

Merged
sb10q merged 1 commits from esavkin/nix-scripts:134-m-labs-intl into master 2024-07-19 17:24:26 +08:00
Owner
No description provided.
sb10q reviewed 2024-06-18 08:24:31 +08:00
web.nix Outdated
@ -8,0 +17,4 @@
echo "5.78.86.156 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEMbV69aqkHdQ1T5lMuALyHjNowU1rottZtEV4OhKQ6Y" > $HOME/.ssh/known_hosts
chmod 600 $HOME/.ssh/id_ed25519
${pkgs.rsync}/bin/rsync -r -c $HOME/intl/ zolaupd@5.78.86.156:/var/www/m-labs-intl.com/html/
Owner

That is not going to work from the Nix sandbox. It needs to be RunCommand.

That is not going to work from the Nix sandbox. It needs to be RunCommand.
Owner

Is it not a part of runCommand already, or does it have to be separated somehow?

Is it not a part of ``runCommand`` already, or does it have to be separated somehow?
Owner
The other RunCommand (with capital R) https://github.com/NixOS/hydra/blob/master/doc/manual/src/plugins/RunCommand.md?plain=1
esavkin force-pushed 134-m-labs-intl from b640438dc0 to 80ed78b5bd 2024-06-19 15:52:20 +08:00 Compare
sb10q reviewed 2024-07-18 12:09:36 +08:00
web.nix Outdated
@ -8,0 +9,4 @@
''
cd ${web-src};
DOMAINNAME=m-labs-intl.com ${pkgs.zola}/bin/zola build -o $out;
'';
Owner

; is not necessary in a multi line shell script.
Please stop blindly copying code without understanding it.

``;`` is not necessary in a multi line shell script. Please stop blindly copying code without understanding it.
esavkin force-pushed 134-m-labs-intl from 80ed78b5bd to 3ec9d18b58 2024-07-19 17:23:59 +08:00 Compare
esavkin changed title from Auto-deploy website to m-labs-intl.com to Auto-build website to m-labs-intl.com 2024-07-19 17:24:14 +08:00
sb10q merged commit 3ec9d18b58 into master 2024-07-19 17:24:26 +08:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nix-scripts#92
No description provided.