fix: Git Hash #3
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-03-24 14:36:50 +01:00
parent ec92f4bd5d
commit 53628a319e

View File

@@ -24,12 +24,6 @@ steps:
- docker compose exec php php artisan optimize
- docker compose exec php php artisan storage:link
- git config --global --add safe.directory /var/www/html/bookstack.octolabs.net
- >
if grep -q "GIT_HASH=" .env; then
sed -i 's/GIT_HASH=.*/GIT_HASH=$(git rev-parse --short HEAD)/' .env
else
echo "GIT_HASH=$(git rev-parse --short HEAD)" >> .env
fi
- npx nuxi cleanup
- pnpm run build
- find /var/www/html/bookstack.octolabs.net -type f -exec chmod 664 {} \\;