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
8a70e3c1
Commit
8a70e3c1
authored
2 years ago
by
FETCHEPING FETCHEPING Rossif Borel
Browse files
Options
Downloads
Patches
Plain Diff
Fix pipeline deploy job error
parent
6819341b
No related branches found
No related tags found
1 merge request
!2
Develop
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+12
-12
12 additions, 12 deletions
.gitlab-ci.yml
with
12 additions
and
12 deletions
.gitlab-ci.yml
+
12
−
12
View file @
8a70e3c1
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
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