Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Fil rouge Gitlab CI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FETCHEPING FETCHEPING Rossif Borel
Fil rouge Gitlab CI
Compare revisions
329360cd0d1db2011dff8610c67c46c79a6f8598 to ad03b00d159d32b690563a34b1657030b9486bb9
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
r22fetch/fil-rouge-ci-gitlab
Select target project
No results found
ad03b00d159d32b690563a34b1657030b9486bb9
Select Git revision
Branches
develop
main
2 results
Swap
Target
r22fetch/fil-rouge-ci-gitlab
Select target project
r22fetch/fil-rouge-ci-gitlab
1 result
329360cd0d1db2011dff8610c67c46c79a6f8598
Select Git revision
Branches
develop
main
2 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (3)
update pipeline
· 3e2e6822
FETCHEPING FETCHEPING Rossif Borel
authored
2 years ago
3e2e6822
Merge branch 'develop' of gitlab.imt-atlantique.fr:r22fetch/fil-rouge-ci-gitlab into develop
· c7aeb093
FETCHEPING FETCHEPING Rossif Borel
authored
2 years ago
c7aeb093
Pipeline complete
· ad03b00d
FETCHEPING FETCHEPING Rossif Borel
authored
2 years ago
ad03b00d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+17
-17
17 additions, 17 deletions
.gitlab-ci.yml
with
17 additions
and
17 deletions
.gitlab-ci.yml
View file @
ad03b00d
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
...
...
This diff is collapsed.
Click to expand it.