ozbillwang/drone-ecr
Drone plugins to build and push images to AWS ECR registry servers.
799
Add features to official drone plugin drone-ecr
Add a feature to read a local file token
so you can assume role and source the aws api keys easily.
$ cat ./token
export AWS_ACCESS_KEY_ID=ASIAJEEL73YIJPYIxxxx
export AWS_SECRET_ACCESS_KEY=APGrHUPP18oVULXtbIqo6fVjWOCxxxx
export AWS_SESSION_TOKEN=xxxx
Usage:
pipeline:
ecr:
image: ozbillwang/drone-ecr:1.0
repo: <account_id>.dkr.ecr.us-east-1.amazonaws.com/bar
registry: <account_id>.dkr.ecr.us-east-1.amazonaws.com
+ token_file: token
pull: true
tags:
- latest
- 1.0.1
- 1.0
Force to use docker build option --no-cache
in drone pipeline
pipeline:
ecr:
+ image: ozbillwang/drone-ecr:1.1
...
With this new image, when build image, it will force docker for clean build of an image.
/usr/local/bin/docker build --rm=true --no-cache -f Dockerfile -t 00000000 . --pull=true --label org.label-schema.build-date=2017-12-18T06:28:43Z --label org.label-schema.vcs-ref=00000000 --label org.label-schema.vcs-url=
docker pull ozbillwang/drone-ecr