Joachim Hill-Grannec 5879d6c388 Merge pull request #39 from Ashtonian/patch-1
add `for rancher 1.x only` in initial summary so its clear.
2020-11-05 10:20:12 -05:00
2018-08-02 22:29:39 +02:00
2018-08-02 22:37:10 +02:00
2018-08-02 22:29:39 +02:00
2018-08-02 22:29:39 +02:00
2020-06-11 17:42:51 -05:00
2020-06-11 17:42:51 -05:00

drone-rancher

Build Status Go Doc Go Report

Drone plugin to deploy or update a project on Rancher 1.x only. For the usage information and a listing of the available options please take a look at the docs.

Binary

Build the binary using drone cli:

drone exec

Example

Usage

Build and deploy from your current working directory:

docker run --rm                          \
  -e PLUGIN_URL=<source>                 \
  -e PLUGIN_ACCESS_KEY=<key>     \
  -e PLUGIN_SECRET_KEY=<secret>  \
  -e PLUGIN_SERVICE=<service>            \  
  -e PLUGIN_DOCKER_IMAGE=<image>         \
  -v $(pwd):$(pwd)                       \
  -w $(pwd)                              \
  pelotech/drone-rancher 

Contribution

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-rancher drone exec
  • on your server just make sure you have DOCKER_USERNAME, DOCKER_PASSWORD, and PLUGIN_REPO set as secrets
S
Description
No description provided
Readme 1.7 MiB
Languages
Go 94.8%
Dockerfile 5.2%