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
Merge requests
!2
Develop
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Develop
develop
into
main
Overview
0
Commits
3
Pipelines
0
Changes
1
Merged
FETCHEPING FETCHEPING Rossif Borel
requested to merge
develop
into
main
2 years ago
Overview
0
Commits
3
Pipelines
0
Changes
1
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
8a70e3c1
3 commits,
2 years ago
1 file
+
4
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
4
−
3
View file @ 8a70e3c1
Edit in single-file editor
Open in Web IDE
Show full file
@@ -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
@@ -128,8 +128,9 @@ deploy:
-
chmod og= $VM_IMT_SSH
-
apk update && apk add openssh-client gettext
-
envsubst '${TAG_API_LATEST},${TAG_FRONT_LATEST}' < docker-compose.yml.template > docker-compose.yml
-
scp -i $VM_IMT_SSH -o StrictHostKeyChecking=no ./docker-compose.yml $VM_IMT_USER@$VM_IMT_IP:/home/$VM_IMT_USER/vapormap/
-
ssh -i $VM_IMT_SSH -o StrictHostKeyChecking=no $VM_IMT_USER@$VM_IMT_IP "echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" "$CI_REGISTRY" --password-stdin"
-
ssh -i $VM_IMT_SSH -o StrictHostKeyChecking=no $VM_IMT_USER@$VM_IMT_IP "mkdir -p /home/$VM_IMT_USER/vapormap && rm -rf /home/$VM_IMT_USER/vapormap/*"
-
scp -i $VM_IMT_SSH -o StrictHostKeyChecking=no ./docker-compose.yml $VM_IMT_USER@$VM_IMT_IP:/home/$VM_IMT_USER/vapormap
-
ssh -i $VM_IMT_SSH -o StrictHostKeyChecking=no $VM_IMT_USER@$VM_IMT_IP "echo '$CI_REGISTRY_PASSWORD' | docker login -u "$CI_REGISTRY_USER" "$CI_REGISTRY" --password-stdin"
-
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"
Loading