versioning
This commit is contained in:
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
@@ -84,14 +84,6 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('Tag Latest') {
|
||||
steps {
|
||||
echo 'Tagging deployed images as latest...'
|
||||
//sh "docker tag ${IMAGE_FRONTEND_NAME} chore-app-frontend:latest"
|
||||
//sh "docker tag ${APP_BACKEND_NAME}:${BASE_VERSION}-${BUILD_NUMBER} ${APP_BACKEND_NAME}:latest"
|
||||
}
|
||||
}
|
||||
|
||||
stage('Cleanup') {
|
||||
steps {
|
||||
echo 'Removing old/dangling Docker images...'
|
||||
@@ -110,5 +102,14 @@ pipeline {
|
||||
sh "echo 'Build Complete. Images ready: ${IMAGE_FRONTEND_NAME} and ${IMAGE_BACKEND_NAME}'"
|
||||
}
|
||||
}
|
||||
|
||||
stage('Tag Latest') {
|
||||
steps {
|
||||
echo 'Tagging deployed images as latest...'
|
||||
sh "docker tag ${IMAGE_FRONTEND_NAME} chore-app-frontend:latest"
|
||||
sh "docker tag ${APP_BACKEND_NAME}:${BASE_VERSION}-${BUILD_NUMBER} ${APP_BACKEND_NAME}:latest"
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user