Specify type of runner

Hi!

I’m trying to use drone for windows game that needs packages specifically for windows. As such, I’ll have a windows exec runner. The issue is that I have multiple different types of runners now (docker/exec) and some repos require the docker runner while this one will require the exec runner. Is there a way to specify that only the exec runner to take the job for this repo?

Your pipeline should specify the runner in the type attribute like this:

kind: pipeline
type: docker
kind: pipeline
type: exec

You can also configure a runner to reject a pipeline if a repository is not whitelisted. If a user configures the pipeline with type: exec and the repository is not whitelisted it would error.
https://docs.drone.io/runner/exec/configuration/reference/drone-limit-repos/

1 Like