[webhook] Updates the NPM install hooks to do a new directory on each deploy. Clean will come later
This commit is contained in:
@@ -38,11 +38,11 @@ in
|
||||
virtualisation.oci-containers.containers =
|
||||
mkStaticSite {
|
||||
host = terakoda;
|
||||
dir = "dist";
|
||||
dir = "deployed";
|
||||
}
|
||||
// mkStaticSite {
|
||||
host = blazestar;
|
||||
dir = "dist";
|
||||
dir = "deployed";
|
||||
}
|
||||
// mkStaticSite {
|
||||
host = havenisms;
|
||||
|
||||
@@ -28,6 +28,8 @@ let
|
||||
id
|
||||
pwd
|
||||
|
||||
output_dir=$(date --utc --iso-8601=seconds)
|
||||
|
||||
export GIT_SSH_COMMAND='ssh -v -o "UserKnownHostsFile ${gitKnownHosts}" -i "${
|
||||
config.sops.secrets."deploy-key/mcp".path
|
||||
}"'
|
||||
@@ -43,7 +45,8 @@ let
|
||||
|
||||
# Use a local cache with --cache .npm
|
||||
npm ci --cache .npm
|
||||
npm run build
|
||||
npm run build -- --outDir "$output_dir"
|
||||
ln -s "$output_dir" deployed
|
||||
'';
|
||||
};
|
||||
in
|
||||
|
||||
Reference in New Issue
Block a user