could you please change the lines
def resolve_ecr_public():
if os.getenv("ECR_PUBLIC"):
in https://bitbucket.org/atlassian/aws-ecr-push-image/src/master/pipe/pipe.py. to
def resolve_ecr_public():
if os.getenv("ECR_PUBLIC") == "true":
So currently I believe it just checks if ecr_public env is existing by returning the value as a string, if so its true. This results in, ECR_PUBLIC is true even if you declare it as false in the variables:
ECR_PUBLIC: "false"
empty values are not allowed.
But if value get checked against "true" specifically, the pipe could get a dynamic value (eighter overwriting default "false" or "true" and therefore bitbucket pipeline yml configs can get much smaller. and allows conditional values, regarding pushing to certain repos.
Kind regards,
Knut
@Knittchen hi. Thank you for your suggestion. Our team will implement changes to this logic and notify you.
Regards, Igor
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.