Skip to content
Extraits de code Groupes Projets
Valider c9c11a21 rédigé par Brieuc Dubois's avatar Brieuc Dubois
Parcourir les fichiers

Merge branch 'feat/cd' into 'dev'

Continuous Deployement

Closes #86

See merge request !7
parents d217ae81 b20f46cd
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!7Continuous Deployement
...@@ -4,3 +4,4 @@ ...@@ -4,3 +4,4 @@
*.pem *.pem
.ipynb_checkpoints/ .ipynb_checkpoints/
scripts/surveys/.creds
stages: stages:
- lint - lint
- build - build
- deploy
lint_frontend: lint_frontend:
stage: lint stage: lint
except:
- feat/cd
image: node image: node
script: script:
- cd frontend - cd frontend
...@@ -12,6 +15,8 @@ lint_frontend: ...@@ -12,6 +15,8 @@ lint_frontend:
lint_backend: lint_backend:
stage: lint stage: lint
except:
- feat/cd
image: registry.gitlab.com/pipeline-components/black:latest image: registry.gitlab.com/pipeline-components/black:latest
script: script:
- black --check --verbose -- . - black --check --verbose -- .
...@@ -31,3 +36,12 @@ build: ...@@ -31,3 +36,12 @@ build:
script: script:
- docker build -t $CI_REGISTRY/sbibauw/languagelab:$COMPONENT $COMPONENT - docker build -t $CI_REGISTRY/sbibauw/languagelab:$COMPONENT $COMPONENT
- docker push $CI_REGISTRY/sbibauw/languagelab:$COMPONENT - docker push $CI_REGISTRY/sbibauw/languagelab:$COMPONENT
docker_deploy:
stage: deploy
only:
- main
- feat/cd
image: alpine:latest
script:
- echo "/mnt/data/languagelab/repo/scripts/update.sh" > /mnt/pipeline
echo "STARTED UPDATE AT $(date)" > /tmp/docker_update
cd /mnt/data/languagelab/repo/
git pull
docker compose up -d
cd scripts/surveys
python3 survey_maker.py < .creds
echo "END UPDATE AT $(date)" >> /tmp/docker_update
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter