Categorygithub.com/kanopy-platform/drone-extension-router
repositorypackage
0.2.3
Repository: https://github.com/kanopy-platform/drone-extension-router.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

drone-extension-router

Drone extension server that is capable of routing different kinds of extension requests from the Drone server.

Usage

In order to run the extension router, you must provide a DRONE_SECRET environment variable that is used to authenticate http requests to the extension.

$ DRONE_SECRET=mysecret ./drone-extension-router

The extension router also takes a configuration file path (DRONE_CONFIG_FILE) that is used to enable/configure various extensions.

$ DRONE_CONFIG_FILE=config.yaml DRONE_SECRET=mysecret ./drone-extension-router

The configuration format is as follows:

---
convert:
  defaults:
    enable: true
    pipeline:
      node_selector:
        instancegroup: drone
      tolerations:
      - key: dedicated
        operator: Equal
        value: drone
        effect: NoSchedule
  pathschanged:
    enable: true

Built-in Plugins

Convert

PluginDescription
defaultsTakes Drone resource configuration as input and merges that with resources in the pipeline request. Values provided in converter.Request take precedence.
pathschangedInclude/exclude pipelines and pipeline steps based on paths changed.

Testing

Run unit tests

make test

Run local docker container

make docker-run