Skip to content

Drone plugin for building images with Bazel rules_docker and ECR

Notifications You must be signed in to change notification settings

kanopy-platform/drone-bazelisk-ecr

Repository files navigation

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