Reference

Updated 2 years ago by Admin

Index of all configuration parameters:

  • DRONE_DEBUG
    Optional boolean value. Enables debug level logging.
    DRONE_DEBUG=true
  • DRONE_ENV_PLUGIN_ENDPOINT
    Optional string value. Provides the endpoint used to make http requests to an external environment variable plugin. The external environment variable plugin can be used to source custom pipeline environment variables from third party system.
    DRONE_ENV_PLUGIN_ENDPOINT=http://1.2.3.4:3000
  • DRONE_ENV_PLUGIN_SKIP_VERIFY
    Optional boolean value. Disable SSL verification when making http requests to the plugin endpoint. This is unsafe and is not recommended.
    DRONE_ENV_PLUGIN_SKIP_VERIFY=false
  • DRONE_ENV_PLUGIN_TOKEN
    Optional string value. Provides the secret token used to authenticate http requests to the plugin endpoint.
    DRONE_ENV_PLUGIN_TOKEN=bea26a2221fd8090ea38720fc445eca6
  • DRONE_HTTP_BIND
    Optional string value configures the http listener port. The default value is :3000. Overriding this value is not recommended.
    DRONE_HTTP_BIND=:3000
  • DRONE_HTTP_HOST
    Optional string value that configures the http listener hostname. The default value is an empty string. Setting this value is not recommended.
    DRONE_HTTP_HOST=runner.company.com:3000
  • DRONE_HTTP_PROTO
    Optional string value configures the http listener protocol. The default value is http. Overriding this value is not recommended.
    DRONE_HTTP_PROTO=http
  • DRONE_LIMIT_EVENTS
    Optional comma-separated string value. Provides a white list of build events that can be processed by this runner. This provides an extra layer of security to limit the kind of workloads this runner can process.
    DRONE_LIMIT_EVENTS=push,tag
  • DRONE_LIMIT_REPOS
    Optional comma-separated string value. Configures the runner to only process matching repositories. This provides an extra layer of security and can stop untrusted repositories from executing pipelines with this runner.
    DRONE_LIMIT_EVENTS=octocat/hello-world,spaceghost/*
  • DRONE_LIMIT_TRUSTED
    Optional boolean value. Configures the runner to only process trusted repositories. This provides an extra layer of security and can stop untrusted repositories from executing pipelines with this runner.
    DRONE_LIMIT_TRUSTED=true
  • DRONE_ORKA_ENDPOINT
    Required string value. Provides the Orka API endpoint.
    DRONE_ORKA_ENDPOINT=http://10.221.188.100
  • DRONE_ORKA_HTTP_DUMP
    Optional boolean value. Enables dumping the http request and response to the logs for debugging purposes. This should only be enabled while debugging connectivity issues between the runner and server.
    DRONE_ORKA_HTTP_DUMP=true
  • DRONE_ORKA_HTTP_DUMP_BODY
    Optional boolean value. Enables dumping the http request and response body to the logs for debugging purposes. This should only be enabled while debugging connectivity issues between the runner and server.
    DRONE_ORKA_HTTP_DUMP_BODY=true
  • DRONE_ORKA_TOKEN
    Required string value. Provides the Orka API token.
    DRONE_ORKA_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.Et9HFtf
  • DRONE_REGISTRY_PLUGIN_ENDPOINT
    Optional string value. Provides the endpoint used to make http requests to an external registry plugin. The external registry plugin can be used to source registry credentials from third party system.
    DRONE_REGISTRY_PLUGIN_ENDPOINT=http://1.2.3.4:3000
  • DRONE_REGISTRY_PLUGIN_SKIP_VERIFY
    Optional boolean value. Disable SSL verification when making http requests to the registry plugin endpoint. This is unsafe and is not recommended.
    DRONE_REGISTRY_PLUGIN_SKIP_VERIFY=false
  • DRONE_REGISTRY_PLUGIN_TOKEN
    Optional string value. Provides the token used to authenticate http requests to the registry plugin endpoint.
    DRONE_REGISTRY_PLUGIN_TOKEN=bea26a2221fd8090ea38720fc445eca6
  • DRONE_RPC_DUMP_HTTP
    Optional boolean value. Enables dumping the http request and response to the logs for debugging purposes. This should only be enabled while debugging connectivity issues between the runner and server.
    DRONE_RPC_DUMP_HTTP=true
  • DRONE_RPC_DUMP_HTTP_BODY
    Optional boolean value. Enables dumping the http request and response body to the logs for debugging purposes. This should only be enabled while debugging connectivity issues between the runner and server.
    DRONE_RPC_DUMP_HTTP_BODY=true
  • DRONE_RPC_HOST
    Required string values. Defines the hostname (and optional port) used to connect to the Drone server.
    DRONE_RPC_HOST=drone.company.com
  • DRONE_RPC_PROTO
    Required string value. Defines the protocol used to connect to the Drone server. The value must be either http or https.
    DRONE_RPC_PROTO=https
  • DRONE_RPC_SECRET
    Required string value. Provides the shared secret used by the Drone server to authenticate http requests.
    DRONE_RPC_SECRET=bea26a2221fd8090ea38720fc445eca6
  • DRONE_RPC_SKIP_VERIFY
    Optional boolean value. Disable SSL verification when making http requests to the Drone server. This is unsafe and is not recommended.
    DRONE_RPC_SKIP_VERIFY=false
  • DRONE_RUNNER_CAPACITY
    Optional number value. Limits the number of concurrent pipelines that a runner can execute. The runner executes 2 concurrent pipelines by default.
    DRONE_RUNNER_CAPACITY=10
  • DRONE_RUNNER_ENV_FILE
    Optional string value. Provides the path to an environment variable file used to define global environment variables injected into all pipeline steps. The environment file format is documented here.
    DRONE_RUNNER_ENV_FILE=/etc/drone.conf
    Remember to mount this file from the host machine into the Docker container. Note the configuration path defined above should point to the file path inside the container.
    docker run \
    --volume /etc/drone.conf:/etc/drone.conf
  • DRONE_RUNNER_ENVIRON
    Optional string map. Provides a set of global environment variables that are injected into every pipeline step.
    DRONE_RUNNER_ENVIRON=foo:bar,baz:qux
  • DRONE_RUNNER_MAX_PROCS
    Optional number value. Limits the number of concurrent steps that a runner can execute for a single pipeline. This is disabled by default. This can be useful if you need to throttle the maximum number of parallel steps to prevent resource exhaustion.
    DRONE_RUNNER_MAX_PROCS=10
  • DRONE_RUNNER_NAME
    Optional string value. Sets the name of the runner. The runner name is stored in the server and can be used to trace a build back to a specific runner.
    DRONE_RUNNER_NAME=ec2-43-21.us-east-1.compute.amazonaws.com
  • DRONE_SECRET_PLUGIN_ENDPOINT
    Optional string value. Provides the endpoint used to make http requests to an external secret plugin. The external secret plugin (e.g. vault) can be used to source secrets from third party system.
    DRONE_SECRET_PLUGIN_ENDPOINT=http://1.2.3.4:3000
  • DRONE_SECRET_PLUGIN_SKIP_VERIFY
    Optional boolean value. Disable SSL verification when making http requests to the plugin endpoint. This is unsafe and is not recommended.
    DRONE_SECRET_PLUGIN_SKIP_VERIFY=false
  • DRONE_SECRET_PLUGIN_TOKEN
    Optional string value. Provides the secret token used to authenticate http requests to the plugin endpoint.
    DRONE_SECRET_PLUGIN_TOKEN=bea26a2221fd8090ea38720fc445eca6
  • DRONE_TRACE
    Optional boolean value. Enables trace level logging.
    DRONE_TRACE=true
  • DRONE_UI_DISABLED
    Optional boolean value. Disables the runner’s user interface.
    DRONE_UI_DISABLE=true
  • DRONE_UI_PASSWORD
    Optional string value. Sets the basic authentication password used to authenticate and access the web dashboard. If no password is provided the web dashboard is disabled.
    DRONE_UI_PASSWORD=root
  • DRONE_UI_REALM
    Optional string value. Sets the basic authentication realm used to authenticate and access the web dashboard.
    DRONE_UI_REALM=DroneRealm
  • DRONE_UI_USERNAME
    Optional string value. Sets the basic authentication username used to authenticate and access the web dashboard.
    DRONE_UI_USERNAME=root
  • DRONE_VM_CPU
    Optional integer value. Sets the default number of virtual cpus allocated to a virtual machine.
    DRONE_VM_CPU=12
  • DRONE_VM_IMAGE
    Required string value. Provides the name of the image used when creating the virtual machine. Please note that you will to create your own custom Orka image that includes git and any other tools required to run your pipelines.
    DRONE_VM_IMAGE=Drone.img
  • DRONE_VM_PASSWORD
    Optional string value. Provides the password used to ssh login to the virtual machine image.
    DRONE_VM_PASSWORD=admin
  • DRONE_VM_USERNAME
    Optional string value. Provides the username used to ssh login to the virtual machine image.
    DRONE_VM_USERNAME=admin


How did we do?