Closed 6543 closed 2 years ago
hmm could be a dublicate ... depending on if they can be used for this kind of feature ... - I need to test them and they need a good documentation!
We probably need to refactor them a bit. I would like to have something like a tag property for whole pipelines & pipeline steps and something similar for agents. So it should be possible to
backend:docker
to solve this)Hm.... so this does work, I could add a filter to an agent like this:
WOODPECKER_FILTER="mysyslabel == 'mylabeledrunner'"
Then I can specify labels in the root of the yaml file like
pipelines:
...
labels:
mysyslabel: mylabeledrunner
from the logic I can also see that the condition would be able to filter on "repo" and "platform"... But as pointed out in the older issue the normal platform check is skipped when a filter condition is active on an agent
We introduced those agent labels which can be used for tagging in #902
workaround could be done with set a "custom" platform, but since #690 it's autodetected ...
the idea is to use the "agent labels" as filter but they do not work?
https://github.com/woodpecker-ci/woodpecker/blob/2f91bdd4a0f5167ef304c220865141c15f2dd563/cmd/agent/agent.go#L39-L44 ...