Skip to content

Commit

Permalink
Added sts get called identity refs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjwwalker committed Jun 12, 2022
1 parent afe1d99 commit 70d33e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
'''
}
}
Expand Down

0 comments on commit 70d33e2

Please sign in to comment.