A config extension to Drone Server to deliver drone files for repositories where you can't put a drone file in.
Go to file
garionion 7c3aa8d5aa
continuous-integration/drone/push Build is passing Details
maybe this will work
2021-08-15 17:53:28 +02:00
plugin first prototype 2021-08-14 18:36:10 +02:00
repo first prototype 2021-08-14 18:36:10 +02:00
.drone.yml maybe this will work 2021-08-15 17:53:28 +02:00
.gitignore initial commit 2021-08-08 10:37:18 +02:00
Dockerfile first prototype 2021-08-14 18:36:10 +02:00
LICENSE.md initial commit 2021-08-08 10:37:18 +02:00
README.md first prototype 2021-08-14 18:36:10 +02:00
go.mod first prototype 2021-08-14 18:36:10 +02:00
go.sum first prototype 2021-08-14 18:36:10 +02:00
main.go first prototype 2021-08-14 18:36:10 +02:00

README.md

A config extension to Server to deliver drone files for repositories where you can't put a drone file in.

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 extension:

$ docker run -d \
  --publish=3000:3000 \
  --env=DRONE_DEBUG=true \
  --env=DRONE_SECRET=bea26a2221fd8090ea38720fc445eca6 \
  --restart=always \
  --name=config garionion/drone-yaml-server

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

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

Testing

Use the command line tools to test your extension.

This extension uses http-signatures to authorize client access and will reject unverified requests. You will be unable to test this extension using a simple curl command.

export DRONE_YAML_ENDPOINT=http://1.2.3.4:3000
export DRONE_YAML_SECRET=bea26a2221fd8090ea38720fc445eca6

drone plugins config get <repo>