Drone

Using Docker Secrets in place of ENVs

Is there anyway to use Docker Secrets to provide values for values such as DRONE_SECRET and DRONE_GITHUB_SECRET ATM?

For others that have a similar question, I’ve fixed this by pushing my .env files into Docker secrets and then mounting them at the root of the container.

I’d tried this before but wasn’t aware I could change the mount point within the container, the documentation doesn’t make it obvious this is possible.

Some links for the interested:

https://docs.docker.com/compose/compose-file/#long-syntax-2
https://github.com/docker/docker.github.io/issues/3923

Current answer seems to be:

Docker stack deploy with docker secrets