forked from LiveCarta/AIServicesBaseImages
Use sh steps instead of docker plugin
This commit is contained in:
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@@ -8,11 +8,8 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Build ML Base Image') {
|
stage('Build ML Base Image') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
sh "DOCKER_BUILDKIT=1 docker build -f MLBaseDockerfile -t ${env.PULL_REGISTRY}/ml_base:latest ."
|
||||||
def img = docker.build("${env.PULL_REGISTRY}/ml_base:latest", "-f MLBaseDockerfile .")
|
sh "docker push ${env.PULL_REGISTRY}/ml_base:latest"
|
||||||
img.push()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user