mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-08-31 14:52:19 +00:00
Changes to be committed:
modified: Jenkinsfile
This commit is contained in:
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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user