From 4f31716a222b6334062569248ed6fb1ce3e35769 Mon Sep 17 00:00:00 2001 From: Maxime Delporte Date: Fri, 31 Oct 2025 10:17:20 +0100 Subject: [PATCH] Updating CI. --- .gitea/workflows/deploy.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 7e01700..878f732 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -32,17 +32,19 @@ jobs: - name: Applying database migrations run: | + echo "Creating migrations folder ๐Ÿ“‚" ssh -p ${{ secrets.SERVER_PORT }} ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }} "mkdir -p /var/www/greenlight/migrations" + echo "Copy migrations files ๐Ÿ“‘" scp -r ./migrations ${{ secrets.SERVER_PORT }} ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }}:/var/www/greenlight/migrations ssh -p ${{ secrets.SERVER_PORT }} ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }} ' set -e cd /var/www/greenlight - echo "Running migrations..." + echo "Running migrations โš™๏ธ" migrate -path=./migrations -database "$GREENLIGHT_DB_DSN" up - echo "Cleaning..." + echo "Cleaning ๐Ÿงน" cd .. && rm -rf greenlight ' "