Updating CI.
All checks were successful
Deploy Greenlight API / deploy (push) Successful in 54s

This commit is contained in:
Maxime Delporte
2025-10-30 15:22:42 +01:00
parent 641f430fd4
commit f96baad6a8

View File

@@ -23,10 +23,6 @@ jobs:
with: with:
go-version: "1.23" # adapte selon ta version go-version: "1.23" # adapte selon ta version
- name: Apply migrations
run: |
migrate -path=./migrations -database=$GREENLIGHT_DB_DSN up
- name: Build API - name: Build API
run: | run: |
go mod tidy go mod tidy
@@ -48,5 +44,7 @@ jobs:
run: | run: |
ssh -p ${{ secrets.SERVER_PORT }} ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }} "\ ssh -p ${{ secrets.SERVER_PORT }} ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }} "\
pkill greenlight-api || true; \ pkill greenlight-api || true; \
cd /var/www/greenlight; \
migrate -path=./migrations -database=$GREENLIGHT_DB_DSN up \
nohup /var/www/greenlight/greenlight-api > /var/www/greenlight/greenlight.log 2>&1 & \ nohup /var/www/greenlight/greenlight-api > /var/www/greenlight/greenlight.log 2>&1 & \
" "