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') {
|
||||
steps {
|
||||
script {
|
||||
// Build the Docker image locally
|
||||
sh "docker build -t ${IMAGE_TAG} ."
|
||||
// Also tag as latest for easy local reference
|
||||
sh "docker tag ${IMAGE_TAG} ${APP_NAME}:latest"
|
||||
// DOCKER_BUILDKIT=0 forces the use of the legacy builder
|
||||
sh "DOCKER_BUILDKIT=0 docker build -t ${IMAGE_TAG} ."
|
||||
sh "DOCKER_BUILDKIT=0 docker tag ${IMAGE_TAG} ${APP_NAME}:latest"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user