Drone CI will not smartly skip subsequent steps if you have a when
on the very first step in a depends_on
chain, so you have to repeat the when
condition for each step because it doesn’t realize that the first dependency is gone.
Drone CI has special handling for ${VAR}
and will replace it itself instead of letting the shell do it. So if you have export PATH=${GOPATH}/bin:$PATH
and have $GOPATH
defined in your global environment key, then it’ll become a blank value. But if you do export PATH=$GOPATH/bin:$PATH
it’ll work.
This is different from normal shell where ${VAR}
is the same as $VAR
and it exists to make sure you can concatenate strings without issues, i.e.