Commit 253f770e authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

fix CI

parent e4efe250
......@@ -2,6 +2,8 @@ variables:
GIT_SSL_NO_VERIFY: "true"
GIT_DEPTH: "3"
SECRET_KEY: "pipo"
EMAIL_HOST_PASSWORD: "pipo"
DB: "db.sqlite3"
DEPLOY_URL: "http://rainboard.laas.fr/deploy"
build:
......@@ -17,8 +19,8 @@ test:
image: docker
script:
- docker build -t ${CI_PROJECT_NAME} .
- docker run --rm -e SECRET_KEY ${CI_PROJECT_NAME} ./manage.py migrate
- docker run --rm -e SECRET_KEY ${CI_PROJECT_NAME} ./manage.py test
- docker run --rm -e SECRET_KEY -e EMAIL_HOST_PASSWORD -e DB ${CI_PROJECT_NAME} ./manage.py migrate
- docker run --rm -e SECRET_KEY -e EMAIL_HOST_PASSWORD -e DB ${CI_PROJECT_NAME} ./manage.py test
- docker tag ${CI_PROJECT_NAME} eur0c.laas.fr:5000/${CI_PROJECT_PATH}:${CI_COMMIT_REF_NAME}
- docker push eur0c.laas.fr:5000/${CI_PROJECT_PATH}:${CI_COMMIT_REF_NAME}
......
......@@ -30,7 +30,7 @@ services:
- default
labels:
- "traefik.enable=true"
- "traefik.frontend.rule= Host:rainboard.${DOMAIN_NAME:-local}"
- "traefik.frontend.rule=Host: rainboard.${DOMAIN_NAME:-local}"
- "traefik.docker.network=traefik"
nginx:
image: nim65s/ndh:nginx
......@@ -41,7 +41,7 @@ services:
- traefik
labels:
- "traefik.enable=true"
- "traefik.frontend.rule= Host:rainboard.${DOMAIN_NAME:-local}; PathPrefix: /static, /media"
- "traefik.frontend.rule=Host: rainboard.${DOMAIN_NAME:-local}; PathPrefix: /static, /media"
networks:
traefik:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment