Skip to content

josmo/drone-k8s-job

Repository files navigation

drone-k8s-job

Build Status Go Doc Go Report

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

Experimental!!!!

This is currently in an experimental phase. Please feel free to provide feedback and suggestions

Versions

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

  1. master will always publish to 'latest' in docker hub pelotech/drone-k8s-job
  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:

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_NAMESPACES=<namespaces>      \
  -e JOB_TEMPLATE=job.yml                |
  -v $(pwd):$(pwd)                       \
  -w $(pwd)                              \
  pelotech/drone-k8s-job 

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published