mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-08-01 07:31:21 +00:00
Changes to be committed:
modified: Jenkinsfile
This commit is contained in:
parent
41b355a77c
commit
d7673fe259
27
Jenkinsfile
vendored
27
Jenkinsfile
vendored
@ -20,5 +20,32 @@ pipeline {
|
||||
shared()
|
||||
}
|
||||
}
|
||||
stage('Building our image') {
|
||||
steps {
|
||||
sh "docker build . -t vinnimous/privategpt:latest"
|
||||
}
|
||||
}
|
||||
stage('Login to Docker') {
|
||||
when {
|
||||
allOf {
|
||||
branch 'master'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
withCredentials([string (credentialsId: 'docker_hub_token', variable: 'token')]) {
|
||||
sh "docker login --username vinnimous --password ${token}"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Push to Docker') {
|
||||
when {
|
||||
allOf {
|
||||
branch 'master'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh "docker image push vinnimous/privategpt:latest"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user