Updated secret management for derek-site
This commit is contained in:
parent
ffa8959679
commit
ba1a84fb7b
1 changed files with 3 additions and 1 deletions
|
|
@ -56,13 +56,15 @@ in {
|
||||||
git fetch
|
git fetch
|
||||||
git reset --hard origin/HEAD
|
git reset --hard origin/HEAD
|
||||||
|
|
||||||
|
cp "${config.age.secrets.${userGroup}.path}" "./src/lib/secretData.json"
|
||||||
|
|
||||||
DENO_DIR=${denoDir} deno i --allow-scripts=npm:workerd,npm:sharp
|
DENO_DIR=${denoDir} deno i --allow-scripts=npm:workerd,npm:sharp
|
||||||
DENO_DIR=${denoDir} deno run build
|
DENO_DIR=${denoDir} deno run build
|
||||||
'';
|
'';
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
StateDirectory = userGroup;
|
StateDirectory = userGroup;
|
||||||
ExecStart = getExe run;
|
ExecStart = "${bash} -c 'cd ${programDir} && deno run previw'";
|
||||||
User = userGroup;
|
User = userGroup;
|
||||||
Group = userGroup;
|
Group = userGroup;
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue