fix: Git Hash #2
continuous-integration/drone/push Build is passing Details

main
Flycro 2024-03-24 14:33:12 +01:00
parent 4c57faef52
commit ec92f4bd5d
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ steps:
- docker compose exec php php artisan migrate --force
- 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