AWS ECR
by drone-plugins
The ECR plugin can be used to build and publish images to the Amazon ECR registry.
Example
kind: pipeline
name: default
steps:
- name: publish
image: plugins/ecr
settings:
access_key: a50d28f4dd477bc184fbd10b376de753
secret_key: bc5785d3ece6a9cdefa42eb99b58986f9095ff1c
repo: bar
registry: <account_id>.dkr.ecr.us-east-1.amazonaws.com
Properties
access_key
stringrequiredAWS access key.
Secret recommendedDefault: none
secret_key
stringrequiredAWS secret key.
Secret recommendedDefault: none
create_repository
booleanoptionalCreate repository if it does not exist.
Default: false
region
stringoptionalAWS region.
Default: us-east-1
repo
stringrequiredrepository name for the image.
Default: none
lifecycle_policy
stringoptionalfilename of ecr lifecycle json policy.
Default: none
repository_policy
stringoptionalfilename of ecr repository json policy.
Default: none
tags
arrayoptionalrepository tag for the image, defaults to latest.
Default: latest
dockerfile
stringoptionalfilename of dockerfile.
Default: Dockerfile
auth
stringoptionalauth token for the registry.
Secret recommendedDefault: none
context
stringoptionalcontext directory for the dockerfile.
Default: rot of the git repo
force_tag
booleanoptionalreplace existing matched image tags.
Default: false
insecure
booleanoptionalenable insecure communication to this registry.
Default: false
mirror
stringoptionaluse a mirror registry instead of pulling images directly from the central Hub.
Default: none
bip
booleanoptionaluse for pass bridge ip.
Default: false
custom_dns
stringoptionalset custom dns servers for the container.
Default: none
storage_driver
stringoptionalsupports aufs, overlay or vfs drivers.
Default: none
build_args
arrayoptionalcustom arguments passed to docker build.
Default: none
scan_on_push
booleanoptionalboolean of whether to enable automatic ECR images vulnerabilities scanning for repository if it was created with create_repository=true.
Default: false