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
Adding agent based filtering info #365
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great to me. Not sure how accurate it is as I've not done it but looking forward to this info being added so I can try it out more easily.
|
Great to hear! Any feedback on testing this is welcome. |
|
seems to be really clear to me but... And i got in agent logs: Did I miss something ? Or this feature is not available in 0.8 branch ? |
|
you should not quote docker environment variables. docker does not unquote them when it parses the yaml environment:
- - DRONE_FILTER="repo != 'metwork-framework/mfext'"
+ - DRONE_FILTER=repo != 'metwork-framework/mfext' |
|
@bradrydzewski brings up a good point ... Does https://github.com/drone/docs/pull/365/files#diff-9e57d9a3f73e1bb392b686d8a92afad2R39 need to be updated to reflect that? Also, does "just work"? I'm worried with the spaces and special characters but admit I've not tried it myself |
|
yep, docker does a |
|
with my agent starts ! (thanks) but... and So, every thing seems to be ok but the agent does not filter ! Is it a feature specific to 0.9 version ? (I use the 0.8 branch) |
|
I removed the quotes and added the info about not-quoting. Not sure which branch this applies to |
|
after several days, does not work for me on 0.8 branch for "repo" or "repo-name" filter: no more luck with filtering on "repo" (instead of repo-name) The filtering seems to work a little bit because I have no build on second agent. Maybe I miss something on filtering on repo name ? |
|
Are you able to test it with e.g. 0.9? |
|
the behavior changed to the following in 0.9.* and higher: since this is now documented in the latest version I'm going to close this issue. |
|
Great, thanks. |
|
Hello https://docs.drone.io/config/pipeline/nodes/ Little typo intsance instead of instance. BTW thank you for this feature. |
Trying to solve #364 . Mostly taken from test suite and here.