Skip to content
Snippets Groups Projects
Commit 8a70e3c1 authored by FETCHEPING FETCHEPING Rossif Borel's avatar FETCHEPING FETCHEPING Rossif Borel
Browse files

Fix pipeline deploy job error

parent 6819341b
No related branches found
No related tags found
1 merge request!2Develop
image: python:3.8-alpine
#workflow:
# rules:
# - if: $CI_COMMIT_BRANCH == "main"
workflow:
rules:
- if: $CI_COMMIT_BRANCH == "main"
stages: # List of stages for jobs, and their order of execution
- test
......@@ -10,7 +10,7 @@ stages: # List of stages for jobs, and their order of execution
- build
- deploy
.build-python:
build-python:
stage: test
script:
- python -m venv venv
......@@ -22,7 +22,7 @@ stages: # List of stages for jobs, and their order of execution
expire_in: 1 day
#Job de test de qualité de code Python de l'API
.lint_test_job:
lint_test_job:
stage: test
script:
- rm -rf docs/api/lint.md && touch docs/api/lint.md
......@@ -36,7 +36,7 @@ stages: # List of stages for jobs, and their order of execution
#allow_failure: true
#Job de test end to end de l'API
.e2e_test_job:
e2e_test_job:
stage: test
script:
- rm -rf docs/api/unit.md && touch docs/api/unit.md
......@@ -48,7 +48,7 @@ stages: # List of stages for jobs, and their order of execution
- docs
#Job de test de couverture de code Python de l'API
.cov_test_job:
cov_test_job:
stage: test
script:
- rm -rf docs/api/coverage.md && touch docs/api/coverage.md
......@@ -60,7 +60,7 @@ stages: # List of stages for jobs, and their order of execution
- docs
#Job de test de qualité de code HTML, JS et CSS
.front_test_job:
front_test_job:
image: node:16
stage: test
script:
......@@ -76,7 +76,7 @@ stages: # List of stages for jobs, and their order of execution
- docs
# Job de génération des pages pour le reporting des tests
.pages:
pages:
stage: report
script:
- pip install mkdocs-material
......@@ -98,7 +98,7 @@ variables:
TAG_FRONT_LATEST: $CI_REGISTRY_IMAGE/vapormap_front:latest
# Job de build et push des images docker
.build:
build:
stage: build
variables:
DOCKER_TLS_CERTDIR: ""
......@@ -134,5 +134,5 @@ deploy:
- ssh -i $VM_IMT_SSH -o StrictHostKeyChecking=no $VM_IMT_USER@$VM_IMT_IP "cd /home/$VM_IMT_USER/vapormap && docker-compose down --rmi all"
- ssh -i $VM_IMT_SSH -o StrictHostKeyChecking=no $VM_IMT_USER@$VM_IMT_IP "cd /home/$VM_IMT_USER/vapormap && docker-compose pull"
- ssh -i $VM_IMT_SSH -o StrictHostKeyChecking=no $VM_IMT_USER@$VM_IMT_IP "cd /home/$VM_IMT_USER/vapormap && docker-compose up -d"
# needs:
# - job: build
\ No newline at end of file
needs:
- job: build
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment