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

This commit is contained in:
Maxime Delporte
2025-10-31 10:30:30 +01:00
parent 42461ef8fb
commit 1c7977fd73

View File

@@ -34,8 +34,11 @@ jobs:
run: | run: |
echo "Creating migrations folder 📂" echo "Creating migrations folder 📂"
ssh -p ${{ secrets.SERVER_PORT }} ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }} "mkdir -p /var/www/greenlight/migrations" ssh -p ${{ secrets.SERVER_PORT }} ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }} "mkdir -p /var/www/greenlight/migrations"
echo "Folder created ✅"
echo "Copy migrations files 📑" echo "Copy migrations files 📑"
scp -r ./migrations ${{ secrets.SERVER_PORT }} ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }}:/var/www/greenlight/migrations scp -p ${{ secrets.SERVER_PORT }} -r ./migrations ${{ secrets.SERVER_PORT }} ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }}:/var/www/greenlight/migrations
echo "Files copied ✅"
ssh -p ${{ secrets.SERVER_PORT }} ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }} "\ ssh -p ${{ secrets.SERVER_PORT }} ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }} "\
set -e set -e
@@ -43,9 +46,11 @@ jobs:
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 "Cleaning 🧹" echo "Cleaning 🧹"
cd .. && rm -rf greenlight \ cd .. && rm -rf greenlight \
echo "Cleaning done ✅"
" "
- name: Build API - name: Build API