build: try fix ci
Some checks failed
Build and Publish Docker Images / build-and-push (backend) (push) Failing after 21s
Build and Publish Docker Images / build-and-push (frontend) (push) Has been cancelled

This commit is contained in:
2025-09-03 21:32:53 +02:00
parent eaa8a7b78d
commit 3f29d19ce3
2 changed files with 5 additions and 9 deletions

View File

@@ -44,7 +44,7 @@ jobs:
id: meta id: meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: ${{ env.REGISTRY }}/${{ env.NAMESPACE }}/zebra-${{ matrix.service }} images: ${{ env.REGISTRY }}/${{ secrets.REGISTRY_USERNAME }}/${{ env.NAMESPACE }}/zebra-${{ matrix.service }}
tags: | tags: |
type=ref,event=branch type=ref,event=branch
type=ref,event=pr type=ref,event=pr

View File

@@ -9,16 +9,12 @@ RUN apt-get update && apt-get install -y \
curl \ curl \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Install uv for faster package management
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
# Copy requirements and install dependencies with uv # Copy requirements and install dependencies with uv
COPY requirements.txt . COPY backend/requirements.txt .
RUN uv pip install --system --no-cache -r requirements.txt RUN pip install --no-cache -r requirements.txt
# Copy application code # Copy application code
COPY app/ ./app/ COPY backend/app/ ./app/
COPY migrate_to_unified_hosts.py ./
# Create data directory for SQLite # Create data directory for SQLite
RUN mkdir -p /app/data RUN mkdir -p /app/data
@@ -26,4 +22,4 @@ RUN mkdir -p /app/data
EXPOSE 8000 EXPOSE 8000
# Production server without auto-reload # Production server without auto-reload
CMD ["uv", "run", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "4"] CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "4"]