Version 0.9.0
Language EN

Configuration in Drone

Secrets are declared in the top-level secrets section of the drone.yml file. The external secret name points to the secret name and data key.

Example AWS secret:

aws secret

Example Drone configuration requests the AWS secret:

kind: pipeline
name: default

steps:
- name:
  image: plugins/docker
  settings:
    repo: octocat/server
    tags: latest
    username:
      $secret: docker_username
    password:
      $secret: docker_password

---
kind: secret
type: external

data:
  docker_username: secret/data/docker#username
  docker_password: secret/data/docker#password

Settings and environment variables can then be sourced from secrets:

kind: pipeline
name: default

steps:
- name:
  image: plugins/docker
  settings:
    repo: octocat/server
    tags: latest
    username:
      $secret: docker_username
    password:
      $secret: docker_password

---
kind: secret
type: external

data:
  docker_username: path/to/docker#username
  docker_password: path/to/docker#password

On This Page:

Getting Help

Enterprise Support
Real-time chat support from the developers that wrote the code.
Mailing List
Search for information in the mailing list archives, or post a question.