I need to push a docker container into ECR. As per the AWS Bitbucket account, this is what i need to add to my bitbucket-pipeline.yaml
YAML Definition
Add the following snippet to the script section of your bitbucket-pipelines.yml file:
- pipe: atlassian/aws-ecr-push-image:1.2.2
variables:
AWS_ACCESS_KEY_ID: '<string>' # Optional if already defined in the context.
AWS_SECRET_ACCESS_KEY: '<string>' # Optional if already defined in the context.
AWS_DEFAULT_REGION: '<string>' # Optional if already defined in the context.
IMAGE_NAME: "<string>"
# TAGS: "<string>" # Optional
# DEBUG: "<boolean>" # OptionalI have multiple Script sections in my current bitbucket-pipeline.yaml where do i need to add this?