Releases: CircleCI-Public/aws-ecr-orb
Releases · CircleCI-Public/aws-ecr-orb
Lifecycle Policy and Web Identity Support
This minor version change addresses the changes:
Added Commands
build-and-push-image command was originally removed in version 8.0 but has been added back by popular demand.
Added Parameters
build-image command now supports adding aws lifecycle policies to repositories in ECR
lifecycle-policy-path: The path of the .json file containing the aws lifecycle policy. If a path is defined in this parameter, the policy will be attached to the specifiedECRrepository.assume-web-identity: A boolean value that lets the user assume a profile with short lived keys. Set to true to configure a profile using short-term credentials
Issues closed
PRs merged or addressed:
What's Changed
Full Changelog: v8.0.0...v.8.1.0
Multi-arch build support
What's Changed
Full Changelog: v7.3.0...v8.0.0
This version update includes the following breaking changes:
account-urlparameter has been removed. The defaulturlis now constructed using theregistry-idwith the following schema:${REGISTRY_ID}.dkr.ecr.${REGION}.amazonaws.comregistry-idhas been introduced as an environment variable and will be used to construct the URL for your default registryregion- this parameter has now been changed fromenv_vartype to astring- Multi-architecture builds has been introduced with
docker buildxcommands. Thepush-imagecommand has been removed. Pushing an image is now a boolean parameter calledpush-imagethat defaults totrue. - The
build-and-pushcommand has also been removed due to redundancy. Thebuild-and-pushjob does the same thing.
Added parameters:
build-image command now supports multi-architecture builds and pushing to public registries
registry-id: The 12 digit AWS Registry ID associated with the ECR account.push-image: Boolean value that enables users to push an image to a repository after building.platform: Platform targets for the docker image, multi arch images. Ex. linux/amd64 or linux/arm64.public-registry: Boolean value for building and/or pushing an image to a Public Registry on ECR.
ecr-login command now supports role-arn configuration.
new-profile-name: Name of new profile associated with role arnsource-profile: Source profile containing credentials to assume the role with role-arn.role-arn: Role ARN that the profile should take
create-repo command now supports creation of public registries
public-registry: Boolean value for building and/or pushing an image to a Public Registry on ECR.
New commands
tag-image command adds tag to an existing image
repo: Name of an Amazon ECR repositorysource-tag: An existing Docker image tagtarget-tag: A comma-separated string containing docker image tags (default = latest)