diff --git a/Jenkinsfile b/Jenkinsfile index bc72d98..5e10c05 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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" + } + } + } } \ No newline at end of file