From 7a1447b460d0b6ffcb0558da91613aa7986a4456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tha=C3=ADs=20Ferreira?= Date: Thu, 28 Nov 2024 18:02:58 +0000 Subject: [PATCH] Update 3 files --- .dockerignore | 89 ++++++++++++++++++++++++++++++++++++++++++++++ .gitignore | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++ .gitlab-ci.yml | 47 ++++++++++++++++++++++++ 3 files changed, 232 insertions(+) create mode 100644 .dockerignore create mode 100644 .gitignore create mode 100644 .gitlab-ci.yml diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..78bb049 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,89 @@ +# Git +.git +.gitignore +.gitattributes + + +# CI +.codeclimate.yml +.travis.yml +.taskcluster.yml + +# Docker +docker-compose.yml +Dockerfile +.docker +.dockerignore + +# Byte-compiled / optimized / DLL files +**/__pycache__/ +**/*.py[cod] + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.cache +nosetests.xml +coverage.xml + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Virtual environment +.env +.venv/ +venv/ + +# PyCharm +.idea + +# Python mode for VIM +.ropeproject +**/.ropeproject + +# Vim swap files +**/*.swp + +# VS Code +.vscode/ \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d7c8c03 --- /dev/null +++ b/.gitignore @@ -0,0 +1,96 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Virtual environments +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# IDE specific settings +.vscode/ +.idea/ +*.sublime-project +*.sublime-workspace + +# Jupyter Notebook +.ipynb_checkpoints + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# dotenv +.env +.venv + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# Profiling data +.prof + +# Test coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +lmodel/__pycache__/ +tests/__pycache__/ +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..410a707 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,47 @@ +stages: + - build + - check + - publish + - deploy + +variables: + PROJECT_NAME: "api-face-recognition" + +build: + stage: build + script: + - make build + only: + - main + tags: + - cat-squid + +check: + stage: check + script: + - make check + only: + - main + tags: + - cat-squid + + +publish: + stage: publish + script: + - make login-aws + - make publish + only: + - main + tags: + - cat-squid + +deploy: + stage: deploy + script: + - make deploy-ci + only: + - main + tags: + - cat-squid + \ No newline at end of file