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
Commits
224f337a
Commit
224f337a
authored
2 years ago
by
FETCHEPING FETCHEPING Rossif Borel
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml file
parent
300cf240
No related branches found
No related tags found
No related merge requests found
Pipeline
#8154
failed
2 years ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+18
-15
18 additions, 15 deletions
.gitlab-ci.yml
with
18 additions
and
15 deletions
.gitlab-ci.yml
+
18
−
15
View file @
224f337a
...
...
@@ -10,7 +10,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
...
...
@@ -24,7 +24,7 @@ lint_test_job:
#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
...
...
@@ -36,7 +36,7 @@ e2e_test_job:
-
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
...
...
@@ -48,7 +48,7 @@ cov_test_job:
-
docs
#Job de test de qualité de code HTML, JS et CSS
front_test_job
:
.
front_test_job
:
image
:
node:16
stage
:
test
script
:
...
...
@@ -63,7 +63,7 @@ front_test_job:
paths
:
-
docs
docker_lint_job
:
.
docker_lint_job
:
image
:
hadolint/hadolint:latest-alpine
script
:
-
rm -rf docs/docker/lint.md && touch docs/docker/lint.md
...
...
@@ -97,14 +97,17 @@ variables:
TAG_API_LATEST
:
$CI_REGISTRY_IMAGE/vapormap_api:latest
TAG_FRONT_COMMIT
:
$CI_REGISTRY_IMAGE/vapormap_front:$CI_COMMIT_SHA
TAG_FRONT_LATEST
:
$CI_REGISTRY_IMAGE/vapormap_front:latest
DOCKER_TLS_CERTDIR
:
"
"
DOCKER_HOST
:
tcp://docker:2375/
DOCKER_DRIVER
:
overlay2
# Job de build et push des images docker
build
:
stage
:
build
variables
:
DOCKER_TLS_CERTDIR
:
"
"
DOCKER_HOST
:
tcp://docker:2375/
DOCKER_DRIVER
:
overlay2
#
variables:
#
DOCKER_TLS_CERTDIR: ""
#
DOCKER_HOST: tcp://docker:2375/
#
DOCKER_DRIVER: overlay2
services
:
-
docker:20.10-dind
image
:
docker:20.10
...
...
@@ -118,12 +121,12 @@ build:
-
docker build -f Dockerfile.front -t $TAG_FRONT_COMMIT -t $TAG_FRONT_LATEST .
-
docker push $TAG_FRONT_COMMIT
-
docker push $TAG_FRONT_LATEST
needs
:
-
job
:
lint_test_job
-
job
:
e2e_test_job
-
job
:
cov_test_job
-
job
:
front_test_job
-
job
:
docker_lint_job
#
needs:
#
- job: lint_test_job
#
- job: e2e_test_job
#
- job: cov_test_job
#
- job: front_test_job
#
- job: docker_lint_job
# Job de deploy des images docker sur la VM avec docker-compose
.deploy
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment