mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-04-27 18:52:36 +00:00
Compare commits
2 Commits
73b94d5578
...
b33a69410a
Author | SHA1 | Date | |
---|---|---|---|
|
b33a69410a | ||
|
0a80e03b58 |
@ -1,6 +1,12 @@
|
|||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
- quality-assurance
|
- quality-assurance
|
||||||
|
- build
|
||||||
|
- release
|
||||||
|
|
||||||
|
variables:
|
||||||
|
CONTAINER_TEST_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
||||||
|
CONTAINER_RELEASE_IMAGE: $CI_REGISTRY_IMAGE:latest
|
||||||
|
|
||||||
py312:
|
py312:
|
||||||
stage: test
|
stage: test
|
||||||
@ -27,3 +33,29 @@ linters:
|
|||||||
- pip install tox --no-cache-dir
|
- pip install tox --no-cache-dir
|
||||||
script: tox -e linters
|
script: tox -e linters
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
||||||
|
build-image:
|
||||||
|
image: docker
|
||||||
|
stage: build
|
||||||
|
services:
|
||||||
|
- docker:dind
|
||||||
|
before_script:
|
||||||
|
- echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin
|
||||||
|
script:
|
||||||
|
- docker build --pull -t $CONTAINER_TEST_IMAGE .
|
||||||
|
- docker push $CONTAINER_TEST_IMAGE
|
||||||
|
|
||||||
|
release-image:
|
||||||
|
image: docker
|
||||||
|
stage: release
|
||||||
|
services:
|
||||||
|
- docker:dind
|
||||||
|
before_script:
|
||||||
|
- echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin
|
||||||
|
script:
|
||||||
|
- docker pull $CONTAINER_TEST_IMAGE
|
||||||
|
- docker tag $CONTAINER_TEST_IMAGE $CONTAINER_RELEASE_IMAGE
|
||||||
|
- docker push $CONTAINER_RELEASE_IMAGE
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == "main"
|
||||||
|
|
||||||
|
@ -37,4 +37,4 @@ RUN ln -s /code/.bashrc /root/.bashrc
|
|||||||
ENTRYPOINT ["/code/entrypoint.sh"]
|
ENTRYPOINT ["/code/entrypoint.sh"]
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
CMD ["./manage.py", "shell_plus", "--ipython"]
|
CMD ["./manage.py", "shell"]
|
||||||
|
@ -1,30 +1,28 @@
|
|||||||
channels[daphne]~=4.1.0
|
channels[daphne]~=4.2.2
|
||||||
channels-redis~=4.2.0
|
channels-redis~=4.2.1
|
||||||
citric~=1.4.0
|
citric~=1.4.0
|
||||||
crispy-bootstrap5~=2024.10
|
crispy-bootstrap5~=2025.4
|
||||||
Django>=5.1.2,<6.0
|
Django>=5.2,<6.0
|
||||||
django-crispy-forms~=2.3
|
django-crispy-forms~=2.4
|
||||||
django-extensions~=3.2.3
|
django-filter~=25.1
|
||||||
django-filter~=24.3
|
|
||||||
django-haystack~=3.3.0
|
django-haystack~=3.3.0
|
||||||
django-mailer~=2.3.2
|
django-mailer~=2.3.2
|
||||||
django-phonenumber-field~=8.0.0
|
django-phonenumber-field~=8.1.0
|
||||||
django-pipeline~=3.1.0
|
django-pipeline~=4.0.0
|
||||||
django-polymorphic~=3.1.0
|
django-polymorphic~=3.1.0
|
||||||
django-tables2~=2.7.0
|
django-tables2~=2.7.5
|
||||||
djangorestframework~=3.15.2
|
djangorestframework~=3.16.0
|
||||||
django-rest-polymorphic~=0.1.10
|
django-rest-polymorphic~=0.1.10
|
||||||
elasticsearch~=7.17.9
|
elasticsearch~=7.17.9
|
||||||
gspread~=6.1.4
|
gspread~=6.2.0
|
||||||
gunicorn~=23.0.0
|
gunicorn~=23.0.0
|
||||||
odfpy~=1.4.1
|
odfpy~=1.4.1
|
||||||
pandas~=2.2.3
|
pandas~=2.2.3
|
||||||
phonenumbers~=8.13.47
|
phonenumbers~=9.0.3
|
||||||
psycopg~=3.2.3
|
psycopg~=3.2.6
|
||||||
pypdf~=5.0.1
|
pypdf~=5.4.0
|
||||||
ipython~=8.28.0
|
|
||||||
python-magic~=0.4.27
|
python-magic~=0.4.27
|
||||||
requests~=2.32.3
|
requests~=2.32.3
|
||||||
sympasoap~=1.1
|
sympasoap~=1.1
|
||||||
uvicorn~=0.32.0
|
uvicorn~=0.34.2
|
||||||
websockets~=13.1
|
websockets~=15.0.1
|
@ -79,7 +79,6 @@ INSTALLED_APPS = [
|
|||||||
|
|
||||||
if "test" not in sys.argv: # pragma: no cover
|
if "test" not in sys.argv: # pragma: no cover
|
||||||
INSTALLED_APPS += [
|
INSTALLED_APPS += [
|
||||||
'django_extensions',
|
|
||||||
'mailer',
|
'mailer',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user