Update Jenkinsfile
Some checks failed
eCommerce-backend/pipeline/head There was a failure building this commit
Some checks failed
eCommerce-backend/pipeline/head There was a failure building this commit
This commit is contained in:
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@@ -19,10 +19,9 @@ pipeline {
|
|||||||
stage('Build Image') {
|
stage('Build Image') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
// Build the Docker image locally
|
// DOCKER_BUILDKIT=0 forces the use of the legacy builder
|
||||||
sh "docker build -t ${IMAGE_TAG} ."
|
sh "DOCKER_BUILDKIT=0 docker build -t ${IMAGE_TAG} ."
|
||||||
// Also tag as latest for easy local reference
|
sh "DOCKER_BUILDKIT=0 docker tag ${IMAGE_TAG} ${APP_NAME}:latest"
|
||||||
sh "docker tag ${IMAGE_TAG} ${APP_NAME}:latest"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user