Docker automate in Jenkinsfile (fix 8)
parent
35dca573c9
commit
5b0eafe695
|
|
@ -1,7 +1,7 @@
|
|||
pipeline {
|
||||
agent {
|
||||
docker {
|
||||
image "python:3.11-slim-bookworm"
|
||||
image "docker:dind"
|
||||
args "-v /var/run/docker.sock:/var/run/docker.sock"
|
||||
}
|
||||
}
|
||||
|
|
@ -24,7 +24,7 @@ pipeline {
|
|||
stage('Push to Harbor') {
|
||||
steps {
|
||||
script {
|
||||
docker.withRegistry("{REGISTRY_URL}", "harbor-credentials") {
|
||||
docker.withRegistry("${REGISTRY_URL}", "harbor-credentials") {
|
||||
docker.image("${IMAGE_NAME}:${IMAGE_TAG}").push()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue