Drone plugin to build and publish Docker images to AWS EC2 Container Registry. For the usage information and a listing of the available options please take a look at the docs.
Build the Docker image with the following commands:
docker build --rm=true -t plugins/ecr .
Execute from the working directory:
docker run --rm \
-e PLUGIN_TAG=latest \
-e PLUGIN_REPO=octocat/hello-world \
-e ECR_ACCESS_KEY=N1DOBESIHFPDZBI2YBGA \
-e ECR_SECRET_KEY=HdUp4yYnTjeDaYfH2NICMdHg0V5qHdpce1vxAySv \
-e ECR_REGION=us-east-1 \
-e ECR_CREATE_REPOSITORY=true \
-e DRONE_COMMIT_SHA=d8dbe4d94f15fe89232e0402c6e8a0ddf21af3ab \
-v $(pwd):$(pwd) \
-w $(pwd) \
--privileged \
plugins/ecr --dry-run