This commit is contained in:
Ramón Vásquez 2025-10-29 16:17:35 -03:00
parent a42e612897
commit 8a2e19932e

8
Jenkinsfile vendored
View file

@ -3,8 +3,8 @@ pipeline {
options { skipDefaultCheckout(true) } options { skipDefaultCheckout(true) }
environment { environment {
IMAGE_NAME = 'testing-python-app' IMAGE_NAME = 'rd.jenkins'
IMAGE_TAG = 'latest' IMAGE_TAG = 'test'
CONTAINER_NAME = "${IMAGE_NAME}-container" CONTAINER_NAME = "${IMAGE_NAME}-container"
AWS_URL = '231670719202.dkr.ecr.sa-east-1.amazonaws.com' AWS_URL = '231670719202.dkr.ecr.sa-east-1.amazonaws.com'
@ -41,10 +41,6 @@ pipeline {
aws ecr get-login-password --region "$AWS_REGION" \ aws ecr get-login-password --region "$AWS_REGION" \
| docker login --username AWS --password-stdin "$ECR_REGISTRY" | docker login --username AWS --password-stdin "$ECR_REGISTRY"
''' '''
sh '''
aws ecr describe-repositories --repository-names "liesa/testing-python-app" || \
aws ecr create-repository --repository-name "liesa/testing-python-app"
'''
} }
} }
} }