You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The atlassian/aws-ecr-push-image:2.0.0
image allows us to push to a private ECR repository using OIDC for authentication, but we'd also like to be able to pull a base image from the same repository. Is there a way for us to do that?
@David Bronke hi. Thanks for your question.
Try Use AWS ECR images in Pipelines with OpenID Connect guide, maybe it is your case.
Regards, Igor
No, that's not our use case; that's just for using an image from an ECR repo to run a given step. Instead, we need to pull an image from an ECR repo inside a step, and use it as the base image for a new docker build.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@David Bronke You could try the next approach:
Additional links: Pulling an image , Private registry authentication
To install aws-cli:
script:
- curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.2.9.zip" -o "awscliv2.zip" && unzip awscliv2.zip
- echo 'c778f4cc55877833679fdd4ae9c94c07d0ac3794d0193da3f18cb14713af615f awscliv2.zip' | sha256sum -c - && ./aws/install
Regards, Igor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.