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

Filtering services #24

Merged
merged 2 commits into from
Apr 12, 2019
Merged

Filtering services #24

merged 2 commits into from
Apr 12, 2019

Conversation

mduheaume
Copy link
Contributor

This would allow for filtering the list of services to update using a FILTER_SERVICES env var. It should work with any value you can give to the --filter option in docker service ls. For example, if you only want to update services with an autodeploy label, set FILTER_SERVICES="label=autodeploy". This might resolve #9.

@djmaze
Copy link
Collaborator

djmaze commented Apr 12, 2019

Sorry for the late response. This looks cool, thanks! Merging.

@djmaze djmaze merged commit f5b229d into containrrr:master Apr 12, 2019
@pascalandy
Copy link

This is so cool!!

mduheaume added a commit to mduheaume/shepherd that referenced this pull request May 16, 2019
Merge pull request containrrr#24 from mduheaume/filter-services
@bf8392
Copy link

bf8392 commented Apr 7, 2020

does the filter_services label on the to-update container needs to set to true? or just has to be there < label no matter what value is in it?

@djmaze
Copy link
Collaborator

djmaze commented Apr 7, 2020

@bd8392 There is no filter_services label. The container just needs a label as specified. In the example shown above, it could be autodeploy = <anything>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

use labels for watch list
4 participants