fix(ci/cd)
This commit is contained in:
@@ -21,7 +21,7 @@ jobs:
|
||||
--health-timeout 5s
|
||||
--health-retries 5
|
||||
ports:
|
||||
- 5432:5432
|
||||
- 5433:5432
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -42,7 +42,7 @@ jobs:
|
||||
cd backend
|
||||
python -m pytest tests/ -v || true
|
||||
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
|
||||
CORS_ORIGINS: http://localhost:3000
|
||||
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
|
||||
done
|
||||
|
||||
# ===== BACKEND =====
|
||||
- name: Build backend image
|
||||
uses: docker/build-push-action@v4
|
||||
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:latest-backend"
|
||||
|
||||
# ===== FRONTEND =====
|
||||
- name: Build frontend image
|
||||
uses: docker/build-push-action@v4
|
||||
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:latest-frontend"
|
||||
|
||||
# ===== DEPLOY =====
|
||||
- name: Deploy to Nomad
|
||||
if: success()
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user