Updating CI.
Some checks failed
Deploy Greenlight API / deploy (push) Failing after 40s

This commit is contained in:
Maxime Delporte
2025-10-31 10:46:18 +01:00
parent 17a69b32be
commit 8f047f2b4a

View File

@@ -37,7 +37,6 @@ jobs:
echo "Folder created ✅" echo "Folder created ✅"
echo "Copy migrations files 📑" echo "Copy migrations files 📑"
ls
scp -r -P ${{ secrets.SERVER_PORT }} ./migrations/* ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }}:/var/www/greenlight/migrations scp -r -P ${{ secrets.SERVER_PORT }} ./migrations/* ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }}:/var/www/greenlight/migrations
echo "Files copied ✅" echo "Files copied ✅"
@@ -46,7 +45,7 @@ jobs:
cd /var/www/greenlight cd /var/www/greenlight
echo "Running migrations ⚙️" echo "Running migrations ⚙️"
migrate -path=./migrations -database "$GREENLIGHT_DB_DSN" up migrate -path=./migrations -database=$GREENLIGHT_DB_DSN up
echo "Migrations done ✅" echo "Migrations done ✅"
echo "Cleaning 🧹" echo "Cleaning 🧹"