According to the latest docs its possible to configure docker
pipelines to have global environment variables injected into each step. docs
A simple test on our drone server (latest 1.7) shows steps do not recieve the variables:
kind: pipeline
type: docker
name: default
environment:
HELLO: "world"
steps:
- name: "echo"
image: alpine
commands:
- echo ${HELLO}
- echo $${HELLO}
- echo $HELLO
- echo $$HELLO
- env
The HELLO env var is not echoing with its value as its not being injected as per docs. Pipeline is docker.
If this would have any influence: we are running “docker” pipelines although the actual agents/server are running inside K8s, we create very simple k8s yaml configs for the setup. Basically its docker inside k8s everything else works perfectly aside from this.