feat(devops): tried to fix ci

This commit is contained in:
Maieul BOYER 2026-01-14 14:10:39 +01:00 committed by Maix0
parent d0e787e2c7
commit ac2e3669ca
4 changed files with 48 additions and 15 deletions

View file

@ -151,5 +151,10 @@ fnginx: nginx-dev/nginx nginx-dev/nginx-selfsigned.crt nginx-dev/nginx-selfsigne
jwt_secret:
sh -c "dd if=/dev/urandom bs=32 count=1 2>/dev/null | base64 | tr -d -- '\n' | tr -- '+/' '-_'; echo"
generateEnv:
cp env.example .env
sed -i 's/^JWT_SECRET=.*/JWT_SECRET=$(shell sh -c "dd if=/dev/urandom bs=32 count=1 2>/dev/null | base64 | tr -d -- '\n' | tr -- '+/' '-_'; echo")/' .env
# phony
.PHONY: all clean fclean re header footer npm@install npm@clean npm@fclean npm@build sql tmux logs jwt_secret