Hi there!
Any advice how can i use
when:
instance: stage.drone.company.com
(http://docs.drone.io/installation/)
Tried to put agent hostname there, to no avail.
Simple env
command in .drone.yml outputs no such variable DRONE_INSTANCE
Thanks a lot in advance!
Any advice how can i use
There is no setup or special instructions to use this feature. For me it just worked.
Simple env command in .drone.yml outputs no such variable DRONE_INSTANCE
Is it documented somewhere that DRONE_INSTANCE
exists? I am not aware of an environment variable with this name. I am only aware of the CI_SYSTEM_HOST
environment variable.
Tried to put agent hostname there, to no avail.
This will not work with the agent hostname. The instance value is the address (e.g. url hostname) of your Drone server, not your agent. The purpose of the instance
condition is so that you can share a single yaml for multiple Drone installations, and limit steps to specific installations (by server address)
Thanks for the info! It totally made everything clear.
About a variable - almost every other condition, like branch/tag/event has corresponding env variable, so i looked for one, that’s all.