Docker automate in Jenkinsfile (fix 8)
TEST_JD/pipeline/head There was a failure building this commit Details
BOT_open_sesam/pipeline/head There was a failure building this commit Details

main
dl 2026-02-04 12:50:00 +05:00
parent 35dca573c9
commit 5b0eafe695
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -1,7 +1,7 @@
pipeline { pipeline {
agent { agent {
docker { docker {
image "python:3.11-slim-bookworm" image "docker:dind"
args "-v /var/run/docker.sock:/var/run/docker.sock" args "-v /var/run/docker.sock:/var/run/docker.sock"
} }
} }
@ -24,7 +24,7 @@ pipeline {
stage('Push to Harbor') { stage('Push to Harbor') {
steps { steps {
script { script {
docker.withRegistry("{REGISTRY_URL}", "harbor-credentials") { docker.withRegistry("${REGISTRY_URL}", "harbor-credentials") {
docker.image("${IMAGE_NAME}:${IMAGE_TAG}").push() docker.image("${IMAGE_NAME}:${IMAGE_TAG}").push()
} }
} }