Open WillGibson opened 2 years ago
Hi Will, unfortunately this is not possible because environment variable substitution happens before the YAML is parsed. This creates a chicken and egg problem. If the goal is to keep your yaml DRY, have you considered using YAML anchors? This is a feature native to YAML that allows you to define and use variables. https://medium.com/@kinghuang/docker-compose-anchors-aliases-extensions-a1e4105d70bd
Currently we can use the built in Drone environment variables in plugin settings, e.g...
...but not other environment variables, e.g...
It would be very useful if we could use other environment variables too.