fix(ci/cd)
Some checks failed
Deploy to Production / test (push) Waiting to run
Deploy to Development / build-and-deploy (push) Has been cancelled
Deploy to Production / build-and-deploy (push) Has been cancelled

This commit is contained in:
EvanChal
2026-01-25 22:32:07 +01:00
parent ec30db4c2d
commit d1bfa488a6

View File

@@ -21,7 +21,7 @@ jobs:
--health-timeout 5s --health-timeout 5s
--health-retries 5 --health-retries 5
ports: ports:
- 5432:5432 - 5433:5432
steps: steps:
- name: Checkout code - name: Checkout code
@@ -42,7 +42,7 @@ jobs:
cd backend cd backend
python -m pytest tests/ -v || true python -m pytest tests/ -v || true
env: env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/lediscord_test DATABASE_URL: postgresql://postgres:postgres@localhost:5433/lediscord_test
JWT_SECRET_KEY: test-secret-key JWT_SECRET_KEY: test-secret-key
CORS_ORIGINS: http://localhost:3000 CORS_ORIGINS: http://localhost:3000
ADMIN_EMAIL: test@test.com ADMIN_EMAIL: test@test.com
@@ -88,7 +88,6 @@ jobs:
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login ${{ secrets.REGISTRY_URL }} -u ${{ secrets.REGISTRY_USERNAME }} --password-stdin && break || sleep 5 echo "${{ secrets.REGISTRY_TOKEN }}" | docker login ${{ secrets.REGISTRY_URL }} -u ${{ secrets.REGISTRY_USERNAME }} --password-stdin && break || sleep 5
done done
# ===== BACKEND =====
- name: Build backend image - name: Build backend image
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:
@@ -122,7 +121,6 @@ jobs:
push_with_retry "${{ secrets.REGISTRY_URL }}/${{ secrets.REGISTRY_USERNAME }}/lediscord:prod-backend" push_with_retry "${{ secrets.REGISTRY_URL }}/${{ secrets.REGISTRY_USERNAME }}/lediscord:prod-backend"
push_with_retry "${{ secrets.REGISTRY_URL }}/${{ secrets.REGISTRY_USERNAME }}/lediscord:latest-backend" push_with_retry "${{ secrets.REGISTRY_URL }}/${{ secrets.REGISTRY_USERNAME }}/lediscord:latest-backend"
# ===== FRONTEND =====
- name: Build frontend image - name: Build frontend image
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:
@@ -156,7 +154,6 @@ jobs:
push_with_retry "${{ secrets.REGISTRY_URL }}/${{ secrets.REGISTRY_USERNAME }}/lediscord:prod-frontend" push_with_retry "${{ secrets.REGISTRY_URL }}/${{ secrets.REGISTRY_USERNAME }}/lediscord:prod-frontend"
push_with_retry "${{ secrets.REGISTRY_URL }}/${{ secrets.REGISTRY_USERNAME }}/lediscord:latest-frontend" push_with_retry "${{ secrets.REGISTRY_URL }}/${{ secrets.REGISTRY_USERNAME }}/lediscord:latest-frontend"
# ===== DEPLOY =====
- name: Deploy to Nomad - name: Deploy to Nomad
if: success() if: success()
run: | run: |