Skip to content

josmo/drone-k8s-deployment

Repository files navigation

drone-k8s-deployment

Build Status Go Doc Go Report

Drone plugin to update a deployment in k8s. For the usage information and a listing of the available options please take a look at the docs.

Versions

This repo is using auto-tag from the drone-docker plugin meaning that

  1. master will always publish to 'latest' in docker hub peloton/drone-k8s-deployment
  2. tags will follow semver at the 1.0.0+ - initial 0.x.x may have breaking changes

Binary

Build the binary using go build:

Example

Usage

Build and deploy from your current working directory:

docker run --rm                          \
  -e PLUGIN_URL=<source>                 \
  -e PLUGIN_TOKEN=<token>                \
  -e PLUGIN_CERT=<cert>                  \
  -e PLUGIN_INSECURE=<true>              \
  -e PLUGIN_DEPLOYMENT_NAMES=<deployments> \
  -e PLUGIN_CONTAINER_NAMES=<containers>   \
  -e PLUGIN_NAMESPACES=<namespaces>        \ 
  -e PLUGIN_DOCKER_IMAGE=<image>         \
  -v $(pwd):$(pwd)                       \
  -w $(pwd)                              \
  peloton/drone-k8s-deployment 

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-k8s-deployment drone exec
  • on your server just make sure you have DOCKER_USERNAME, DOCKER_PASSWORD, and PLUGIN_REPO set as secrets

About

Golang drone plugin to update k8s deployments

Resources

Stars

Watchers

Forks

Packages

No packages published