From bba9bd829784cb443928bbb250158bfddc0679a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C3=B3n=20V=C3=A1squez?= Date: Wed, 29 Oct 2025 16:09:16 -0300 Subject: [PATCH] update --- Jenkinsfile | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6f6b734..0a84059 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -54,18 +54,22 @@ pipeline { } } - stage('Run Container') { - steps { - echo 'Running container...' - // --rm cleans up; this will print "Hello, World!" to the console - sh 'docker run --rm --name my-python-app-${BUILD_NUMBER} my-python-app:${BUILD_NUMBER}' - } - } - stage('Push Image') { steps { sh 'docker push "${AWS_REGISTRY}:${IMAGE_TAG}"' } } + stage('Pull Image') { + steps { + sh 'docker pull "${AWS_REGISTRY}:${IMAGE_TAG}"' + } + } + + stage('Run Container') { + steps { + echo 'Running container...' + sh 'docker run --rm --name ${IMAGE_NAME} ${AWS_REGISTRY}:${IMAGE_TAG}' + } + } } }