Version 1.0.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:
      from_secret: username
    password:
      from_secret: password

---
kind: secret

external_data:
  username:
    path: path/do/docker
    name: username
  password:
    path: path/to/docker
    name: 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:
      from_secret: username
    password:
      from_secret: password

---
kind: secret

external_data:
  username:
    path: path/do/docker
    name: username
  password:
    path: path/to/docker
    name: password

On This Page:

Getting Help

Mailing List
Search for information in the mailing list archives, or post a question.
Chat Support
Real-time chat support from maintainers and community members.