Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 952 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 952 Bytes

drone-bazelisk-ecr

Drone plugin for building images with Bazel rules_docker and ECR.

This plugin sets the following environment variables during builds so that they can be referenced as stamp variables in workspace status scripts.

DRONE_ECR_REGISTRY
DRONE_ECR_REPOSITORY
DRONE_ECR_TAG

See the example directory to see how this plugin interacts with your build environment.

Testing locally with drone exec

Build Image and push to a docker registry

make docker-build

Setup a secrets file for drone exec in example/secrets.env

ECR_REGISTRY=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=

Run example locally

cd example/
drone exec --secret-file secrets.env

Useful Links