mirror of
https://github.com/creyD/email_valid.git
synced 2026-04-12 19:30:30 +02:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 74ccfc3d09 | |||
| 371479f21c | |||
| 888f9639ba |
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Lint, Test, Tag, Build and Deploy DEV
|
name: Lint, Test, Tag, Build and Push
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -20,6 +20,7 @@ on:
|
|||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
IMAGE_NAME: ${{ github.repository }}
|
IMAGE_NAME: ${{ github.repository }}
|
||||||
|
IMAGE_SUFFIX: "${{ github.ref_name != 'master' && format('-{0}', github.ref_name) || '' }}"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
@@ -103,7 +104,7 @@ jobs:
|
|||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-${{ github.ref_name }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}${{ env.IMAGE_SUFFIX }}
|
||||||
tags: latest
|
tags: latest
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
@@ -112,7 +113,7 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
build-args: |
|
build-args: |
|
||||||
VERSION=${{ needs.tag.outputs.version }}-${{ github.ref_name }}
|
VERSION=${{ needs.tag.outputs.version }}${{ env.IMAGE_SUFFIX }}
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ RUN pip install 'uvicorn[standard]'
|
|||||||
ENV ENV=DEV
|
ENV ENV=DEV
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--timeout-keep-alive", "600", "--limit-max-requests", "0"]
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--timeout-keep-alive", "600"]
|
||||||
|
|
||||||
# Install curl
|
# Install curl
|
||||||
RUN apt-get update && apt-get install -y curl && apt-get clean
|
RUN apt-get update && apt-get install -y curl && apt-get clean
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ from validate_email import validate_email
|
|||||||
app = FastAPI(
|
app = FastAPI(
|
||||||
title="MailConfirm API",
|
title="MailConfirm API",
|
||||||
description="API for telegram bot for confirming emails.",
|
description="API for telegram bot for confirming emails.",
|
||||||
version="0.1.1",
|
version="0.1.4",
|
||||||
docs_url="/",
|
docs_url="/",
|
||||||
redoc_url=None,
|
redoc_url=None,
|
||||||
debug=False,
|
debug=False,
|
||||||
|
|||||||
Reference in New Issue
Block a user