generated from Flycro/laravel-nuxt
fix: Git Hash
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
91592b06d7
commit
f9c83d6459
|
|
@ -23,12 +23,6 @@ steps:
|
||||||
- docker compose exec php php artisan migrate --force
|
- docker compose exec php php artisan migrate --force
|
||||||
- docker compose exec php php artisan optimize
|
- docker compose exec php php artisan optimize
|
||||||
- docker compose exec php php artisan storage:link
|
- docker compose exec php php artisan storage:link
|
||||||
- >
|
|
||||||
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
|
- npx nuxi cleanup
|
||||||
- pnpm run build
|
- pnpm run build
|
||||||
- find /var/www/html/bookstack.octolabs.net -type f -exec chmod 664 {} \\;
|
- find /var/www/html/bookstack.octolabs.net -type f -exec chmod 664 {} \\;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue