Build a Docker image
Building images with Bitbucket Pipelines
pipelines:
tags:
'**':
- step:
name: Publish New Image
# oidc: true indicates that OIDC authentication has been enabled.
oidc: true
script:
- docker build . -t $BITBUCKET_REPO_SLUG
- pipe: atlassian/aws-ecr-push-image:1.6.2
variables:
AWS_DEFAULT_REGION: us-east-1
AWS_OIDC_ROLE_ARN: $AWS_OIDC_ROLE_ARN
IMAGE_NAME: $BITBUCKET_REPO_SLUG
TAGS: "latest $BITBUCKET_TAG" Last updated
Was this helpful?

