Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/josmo/drone-rancher
Drone plugin for triggering Rancher deployments
https://github.com/josmo/drone-rancher
Last synced: 12 days ago
JSON representation
Drone plugin for triggering Rancher deployments
- Host: GitHub
- URL: https://github.com/josmo/drone-rancher
- Owner: josmo
- Created: 2015-12-12T23:58:35.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-11-05T15:20:13.000Z (about 4 years ago)
- Last Synced: 2024-08-02T02:15:08.200Z (3 months ago)
- Language: Go
- Size: 1.54 MB
- Stars: 53
- Watchers: 7
- Forks: 35
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# drone-rancher
[![Build Status](https://cloud.drone.io/api/badges/josmo/drone-rancher/status.svg)](https://cloud.drone.io/josmo/drone-rancher)
[![Go Doc](https://godoc.org/github.com/josmo/drone-rancher?status.svg)](http://godoc.org/github.com/josmo/drone-rancher)
[![Go Report](https://goreportcard.com/badge/github.com/josmo/drone-rancher)](https://goreportcard.com/report/github.com/josmo/drone-rancher)
[![](https://images.microbadger.com/badges/image/pelotech/drone-rancher.svg)](https://microbadger.com/images/pelotech/drone-rancher "Get your own image badge on microbadger.com")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](DOCS.md).
## 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= \
-e PLUGIN_ACCESS_KEY= \
-e PLUGIN_SECRET_KEY= \
-e PLUGIN_SERVICE= \
-e PLUGIN_DOCKER_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