rotocopter

command module
v0.0.0-...-cb9985b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

README

rotocopter

Using Drone, it usually expects a .drone.yml in your repo.

If your repo is public and your Drone is private, this creates issues.

So, this plugin allows you to provide special YAML files per repository from another Git repository full of pipeline configs.

Installation

Set up your environment variables on the Drone side to point the this Go service:

DRONE_YAML_ENDPOINT=http://1.2.3.4:3000
DRONE_YAML_SECRET=someGeneratedSecretString

On the plugin side, the options and defaults are as follows:

DRONE_BIND=":3000" (bind address, IP:PORT)
DRONE_DEBUG="false" (debug output)
DRONE_SECRET=""  (required: secret from above, to confirm the services know each other)
DRONE_YAML_GIT_REPO="" (required: Repository with the other yaml files)
DRONE_YAML_GIT_USER="" (optional: Username to access the YAML repo)
DRONE_YAML_GIT_PASSWORD="" (optional: Password to access the YAML repo)

Inside the configured GIT_REPO is a file, index.json. It's a simple map from repo slug to yaml file. Alternatively, it also supports converting from Starlark with the .bzl or .star extensions. Unlike the official plugin, you get all the build paramters in the context variable and can use any function name you wish, in the form below.

{
  "barakmich/rotocopter": "some/other/path.yaml",
  "barakmich/pipeline_from_starlark": "path/to/starlark.star:function_name"
}

And you're done! Hopefully!

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL