drocopla

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

README

drocopla

A drone.io conversion extension to set host platform as drone pipeline platform.

Default drone.io behaviour:

If os/arch is not set in .drone.yml pipeline - fill them with linux/amd64.

As result, these pipelines becomes unavailable for drone-runners on non-default platforms. Meanwhile, if you set platform values in .drone.yml, such pipelines becomes unavailable for drone-runners on other platforms.

drocopla adds platform tags with values from its runtime to .drone.yml at conversion stage.

If .drone.yml contains platform tag, drocopla does nothing.

There is a fix for drone.io sources which solves the same problem, but it is not merged yet.

Please note this project requires Drone server version 1.4 or higher.

Installation

Create a shared secret:

$ openssl rand -hex 16
bea26a2221fd8090ea38720fc445eca6

Download and run the plugin:

$ docker run -d \
  --publish=3000:3000 \
  --env=DRONE_DEBUG=true \
  --env=DRONE_SECRET=bea26a2221fd8090ea38720fc445eca6 \
  --restart=always \
  --name=converter ghcr.io/dopos/drocopla

Update your Drone server configuration to include the plugin address and the shared secret.

DRONE_CONVERT_PLUGIN_ENDPOINT=http://1.2.3.4:3000
DRONE_CONVERT_PLUGIN_SECRET=bea26a2221fd8090ea38720fc445eca6

Acknowledgements

This code based on boilr-convert template.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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