Version 1.0.0
Language EN

Secrets

Drone provides the ability to store and manage secret credentials in the user interface. You can expose secrets to your pipeline steps as environment variables, using the following syntax:

kind: pipeline
name: default

steps:
- name: build
  image: alpine
  environment:
    USERNAME:
      from_secret: username
    PASSWORD:
      from_secret: password

In the above example, the named secrets are passed to the pipeline step as environment variables. In the below example, we can source plugin configuration values from secrets using the following syntax:

kind: pipeline
name: default

steps:
- name: build
  image: plugins/docker
  settings:
    repo: octocat/hello-world
    tags: latest
    username:
      from_secret: username
    password:
      from_secret: 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.