Drone plugin to deploy or update a project on AWS Elastic Beanstalk. For the usage information and a listing of the available options please take a look at the docs.
Build the binary with the following commands:
drone exec
Build the docker image with the following commands:
drone exec
docker build --rm=true -t plugins/elastic-beanstalk .
Execute from the working directory:
docker run --rm \
-e PLUGIN_BUCKET=<bucket> \
-e AWS_ACCESS_KEY_ID=<token> \
-e AWS_SECRET_ACCESS_KEY=<secret> \
-e PLUGIN_APPLICATION_NAME=<app> \
-e PLUGIN_ENVIRONMENT_NAME=<env> \
-e PLUGING_BUCKET_KEY=<bucketkey> \
-v $(pwd):$(pwd) \
-w $(pwd) \
pelotech/drone-elastic-beanstalk
This repo is setup in a way that if you enable a personal drone server to build your fork it will build and publish your image (makes it easier to test PRs and use the image till the contributions get merged)
- Build local
DRONE_REPO_OWNER=josmo DRONE_REPO_NAME=drone-elastic-beanstalk drone exec
- on your server just make sure you have DOCKER_USERNAME, DOCKER_PASSWORD, and PLUGIN_REPO set as secrets