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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.