Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
O
odoo-demo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ndoumbe
odoo-demo
Commits
d00be93e
Commit
d00be93e
authored
Dec 18, 2024
by
binta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
9f19d914
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
0 deletions
+69
-0
Jenkinsfile
Jenkinsfile
+68
-0
odoo-chart
odoo-chart
+1
-0
No files found.
Jenkinsfile
0 → 100644
View file @
d00be93e
pipeline
{
agent
any
environment
{
IMAGE_NAME
=
"registry.gitlab.com/binetaci/odoo-demo:latest"
CONFIG_FILE
=
"docker-config.json"
}
stages
{
stage
(
'Build'
)
{
steps
{
echo
"Building Docker image..."
sh
"docker build -t ${IMAGE_NAME} ."
}
}
/* stage('Push Image') {
steps {
echo "Pushing Docker image to GitLab Registry..."
withCredentials([usernamePassword(
credentialsId: 'gitlab-registry-credentials',
usernameVariable: 'USERNAME',
passwordVariable: 'PASSWORD'
)]) {
sh "docker login -u ${USERNAME} -p ${PASSWORD} registry.gitlab.com/binetaci"
sh "docker push ${IMAGE_NAME}"
}
}
}*/
stage
(
'Push Image'
)
{
steps
{
echo
"Pushing Docker image to GitLab Registry..."
// Copier le fichier docker-config.json dans le répertoire Docker
sh
"mkdir -p ~/.docker"
sh
"cp ${CONFIG_FILE} ~/.docker/config.json"
// Pousser l'image dans le registre
sh
"docker push ${IMAGE_NAME}"
}
}
stage
(
'Deploy with Helm'
)
{
steps
{
echo
"Deploying application with Helm..."
sh
"""
helm upgrade --install odoo-deployment ./helm/ \
--set image.repository=registry.gitlab.com/binetaci \
--set image.tag=latest
"""
}
}
stage
(
'ArgoCD Sync'
)
{
steps
{
echo
"Triggering ArgoCD sync..."
sh
"argocd app sync odoo-deployment"
}
}
}
post
{
always
{
echo
"Pipeline completed!"
}
}
}
odoo-chart
@
ac8871d7
Subproject commit ac8871d7f60761890052bdec965bb8ffdd83438f
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment