diff --git a/Jenkinsfile b/Jenkinsfile index 4ad998a..55de3ed 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -29,12 +29,6 @@ pipeline { echo "Detected tag: ${tagName}" - if (tagName == 'no-tag') { - echo "Not a tag build, skipping deployment." - currentBuild.result = 'SUCCESS' - error("Stopping pipeline: not a tag push.") - } - if (!(tagName ==~ /^v[0-9]+(\.[0-9]+){0,2}$/)) { echo "[!] Invalid tag format. Expected format: vX.Y.Z" currentBuild.result = 'SUCCESS' @@ -42,10 +36,7 @@ pipeline { } env.IMAGE_TAG = tagName - env.AWS_IMAGE = "${AWS_URL}/${AWS_USER}/${IMAGE_NAME}:${IMAGE_TAG}" - - echo "Tag validado: ${env.IMAGE_TAG}" - + env.AWS_IMAGE = "${AWS_URL}/${AWS_USER}/${IMAGE_NAME}:${IMAGE_TAG}" } } @@ -55,7 +46,7 @@ pipeline { steps { sh "echo ${AWS_IMAGE}" script { - docker.build("${AWS_IMAGE}", '--no-cache --pull -f src/Service/Infrastructure/App/Dockerfile .') + docker.build("${AWS_IMAGE}", '-f src/worker/Dockerfile ./src/worker/ --no-cache') } } }