Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let Agents explizite target workflows by labels #4459

Open
6543 opened this issue Nov 25, 2024 · 2 comments
Open

Let Agents explizite target workflows by labels #4459

6543 opened this issue Nov 25, 2024 · 2 comments
Labels
agent enhancement improve existing features

Comments

@6543
Copy link
Member

6543 commented Nov 25, 2024

image

ontop of #4141:

 ### `WOODPECKER_AGENT_LABELS`
 
 > Default: empty
 
 Configures custom labels for the agent, to let workflows filter by it.
 Use a list of key-value pairs like `key=value,second-key=*`. `*` can be used as a wildcard.
+If you use `!` as key prefix it is mandatory for the workflow to have that label set (without !) set and matched.
 By default, agents provide three additional labels `platform=os/arch`, `hostname=my-agent` and `repo=*` which can be overwritten if needed.
 To learn how labels work, check out the [pipeline syntax page](../20-usage/20-workflow-syntax.md#labels).

Originally posted by @6543 in #3483 (comment)

@6543
Copy link
Member Author

6543 commented Nov 25, 2024

currently agents advertise there capabilities via labels ... but can not make sure to only get worklows that actually require them

this proposes an extention to have that option

@6543 6543 added agent enhancement improve existing features labels Nov 25, 2024
@zc-devs
Copy link
Contributor

zc-devs commented Nov 26, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent enhancement improve existing features
Projects
None yet
Development

No branches or pull requests

2 participants