In my cloning step, I get all my configuration files necessary for services like php, nginx, etc…
I need to have these files available as volumes to services when I run them. I do not see a way to delay running service because services do not take depends_on directive. Alternatively I tried running nginx service as one of the steps and set detached to true. However, when I do this, other steps that follow are not able to resolve the nginx step’s service by it’s step name.
I discovered that when you have a detached step, you can not have commands, otherwise service breaks and it’s not accessible. It feels like a bug to me, but at very least, the documentation should mention this.
(This step launches a webserver, then detaches from the flow, so that in another container, I can wait for the server to be up npx wait-on -t 300000 https-get://${DRONE_COMMIT}.focusoptimization.com
then run my tests on the server