Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

tags not work aws-ecr-push-image:2.4.2

Leandro Casanovas
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 30, 2024

When pushing the image to ECR using the tag 1.2.3-RC2, it doesn't work. I am using the plugin from aws-ecr-push-image version 2.4.2. However, when I use version 1.6.2, it works. Why is this happening?

 

          - pipe: atlassian/aws-ecr-push-image:2.4.2
            variables:
              AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
              AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
              AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
              IMAGE_NAME: $BITBUCKET_REPO_SLUG
              TAGS: "1.2.3-RC2"

1 answer

0 votes
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 30, 2024

Hi @Leandro Casanovas . Did you build image with required tag first according to docs?
Screenshot 2024-09-30 at 17.57.08.png

 

Check this example:

script:
  # build the image
  - docker build -t my-docker-image:1.2.3-RC2 .

  # use the pipe to push the image to AWS ECR
  - pipe: atlassian/aws-ecr-push-image:2.4.2
    variables:
      AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
      AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
      AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
      IMAGE_NAME: my-docker-image
      TAGS: '1.2.3-RC2'

Regards, Igor

Leandro Casanovas
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 30, 2024


Hi @Igor Stoyanov, thanks for your help. I was using the wrong tag in my pipeline.

Like Igor Stoyanov likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events