From 70d33e24141aa1680b43d3236419c1ac4a843c04 Mon Sep 17 00:00:00 2001 From: chrisjwwalker <8091191+chrisjwwalker@users.noreply.github.com> Date: Sun, 12 Jun 2022 16:44:52 +0100 Subject: [PATCH] Added sts get called identity refs --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6545f37..0692c1c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -69,8 +69,8 @@ pipeline { sh ''' ./build/aws/assume-role.sh; aws ecr get-login-password | docker login -u AWS --password-stdin "https://$(aws sts get-caller-identity --query 'Account' --output text).dkr.ecr.$(aws configure get region).amazonaws.com" - docker tag cjww-development/gatekeeper:${env.TAG_NAME} 929252955305.dkr.ecr.eu-west-2.amazonaws.com/gatekeeper:${env.TAG_NAME} - docker push 047459333450.dkr.ecr.eu-west-2.amazonaws.com/gatekeeper:${env.TAG_NAME} + docker tag cjww-development/gatekeeper:${env.TAG_NAME} $(aws sts get-caller-identity --query 'Account' --output text).dkr.ecr.$(aws configure get region).amazonaws.com/gatekeeper:${env.TAG_NAME} + docker push $(aws sts get-caller-identity --query 'Account' --output text).dkr.ecr.$(aws configure get region).amazonaws.com/gatekeeper:${env.TAG_NAME} ''' } }