Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
devops_mohi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
MENACER Mohamed
devops_mohi
Commits
d52dc7d8
Commit
d52dc7d8
authored
3 months ago
by
MENACER Mohamed
Browse files
Options
Downloads
Patches
Plain Diff
test11
parent
914912ac
No related branches found
No related tags found
1 merge request
!4
Br1
Pipeline
#47534
failed
3 months ago
Stage: build
Stage: test
Stage: deploy
Stage: .post
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+3
-2
3 additions, 2 deletions
.gitlab-ci.yml
with
3 additions
and
2 deletions
.gitlab-ci.yml
+
3
−
2
View file @
d52dc7d8
...
...
@@ -5,6 +5,7 @@ stages:
-
build
-
test
-
deploy
-
.post
# Ajout de la stage .post pour le nettoyage
# Variables d'environnement, si nécessaires pour Docker Compose
variables
:
...
...
@@ -38,9 +39,9 @@ deploy:
-
echo "Déploiement de l'application..."
# Remplacer par tes propres commandes de déploiement
when
:
manual
# Pour déployer manuellement
# Job pour nettoyer les containers
# Job pour nettoyer les containers
(modifié pour être dans la stage .post)
cleanup
:
stage
:
cleanup
stage
:
.post
# Utilisation de la stage .post
script
:
-
docker-compose -f $COMPOSE_FILE down
when
:
always
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