4 Commits

Author SHA1 Message Date
74ccfc3d09 fix: attempting to fix tagging issue 2025-07-09 20:59:32 +02:00
371479f21c fix: minor cleanup 2025-07-09 20:55:16 +02:00
888f9639ba fix: removed max_requests 2025-05-19 18:50:25 +02:00
d6e637bf82 fix: increased timeout 2025-05-19 18:44:22 +02:00
3 changed files with 6 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
name: Lint, Test, Tag, Build and Deploy DEV
name: Lint, Test, Tag, Build and Push
on:
push:
@@ -20,6 +20,7 @@ on:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
IMAGE_SUFFIX: "${{ github.ref_name != 'master' && format('-{0}', github.ref_name) || '' }}"
jobs:
lint:
@@ -103,7 +104,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-${{ github.ref_name }}
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}${{ env.IMAGE_SUFFIX }}
tags: latest
- name: Build and push Docker image
@@ -112,7 +113,7 @@ jobs:
context: .
file: ./Dockerfile
build-args: |
VERSION=${{ needs.tag.outputs.version }}-${{ github.ref_name }}
VERSION=${{ needs.tag.outputs.version }}${{ env.IMAGE_SUFFIX }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

View File

@@ -16,7 +16,7 @@ RUN pip install 'uvicorn[standard]'
ENV ENV=DEV
EXPOSE 8000
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--timeout-keep-alive", "600"]
# Install curl
RUN apt-get update && apt-get install -y curl && apt-get clean

View File

@@ -5,7 +5,7 @@ from validate_email import validate_email
app = FastAPI(
title="MailConfirm API",
description="API for telegram bot for confirming emails.",
version="0.1.0",
version="0.1.4",
docs_url="/",
redoc_url=None,
debug=False,