I think I’m taking one too many steps to do this, but I have 5 secrets I want to set as environment variables inside the container.
.drone.yml
pipeline:
# Node image that builds node_modules, api, and single page web
build:
image: plugins/docker
build_args_from_env:
- one
- two
- three
- four
- five
secrets:
- one
- two
- three
- four
- five
...
And then in my Dockerfile I have:
FROM alpine
ARG ONE
ENV ONE $ONE
ARG TWO
ENV TWO $TWO
ARG THREE
ENV THREE $THREE
ARG FOUR
ENV FOUR $FOUR
ARG FIVE
ENV FIVE $FIVE