Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • develop
  • main
2 results

Target

Select target project
  • r22fetch/fil-rouge-ci-gitlab
1 result
Select Git revision
  • develop
  • main
2 results
Show changes
Commits on Source (3)
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
......@@ -11,7 +11,7 @@ stages: # List of stages for jobs, and their order of execution
- deploy
#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
......@@ -25,7 +25,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
......@@ -37,7 +37,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
......@@ -49,7 +49,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:
......@@ -64,13 +64,13 @@ stages: # List of stages for jobs, and their order of execution
paths:
- docs
docker_lint:
docker_lint_job:
image: hadolint/hadolint:latest-alpine
script:
- rm -rf docs/docker/lint.md && touch docs/docker/lint.md
- echo "##${PWD}Dockerfile.api" >> docs/docker/lint.md
- echo "##Dockerfile.api" >> docs/docker/lint.md
- hadolint --no-color --no-fail Dockerfile.api | while read line; do echo ${line}" " >> docs/docker/lint.md; done
- echo "##${PWD}Dockerfile.front" >> docs/docker/lint.md
- echo "##Dockerfile.front" >> docs/docker/lint.md
- hadolint --no-color --no-fail Dockerfile.front | while read line; do echo ${line}" " >> docs/docker/lint.md; done
artifacts:
paths:
......@@ -83,11 +83,11 @@ pages:
- pip install mkdocs-material
- mkdocs build -d public
needs:
#- job: lint_test_job
#- job: e2e_test_job
#- job: cov_test_job
#- job: front_test_job
- job: docker_lint
- job: lint_test_job
- job: e2e_test_job
- job: cov_test_job
- job: front_test_job
- job: docker_lint_job
artifacts:
paths:
- public
......@@ -100,7 +100,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: ""
......@@ -121,7 +121,7 @@ variables:
- docker push $TAG_FRONT_LATEST
# Job de deploy des images docker sur la VM avec docker-compose
.deploy:
deploy:
stage: deploy
tags:
- vm-imt
......