Update deploy action to not trigger on pull requests

This commit is contained in:
thiloho
2024-09-14 21:41:12 +02:00
parent 36ec24731d
commit f322ea7dbf
4 changed files with 9 additions and 6 deletions

View File

@@ -102,7 +102,7 @@ in
};
script = ''
JWT_SECRET=$(head -c 64 /dev/urandom | base64 | tr -d '/+=' | head -c 64)
JWT_SECRET=$(tr -dc 'A-Za-z0-9' < /dev/urandom | head -c64)
${pkgs.postgresql_16}/bin/psql postgres://postgres@localhost:5432/${cfg.databaseName} -c "ALTER DATABASE ${cfg.databaseName} SET \"app.jwt_secret\" TO '$JWT_SECRET'"