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

[Feature] Update entity that uses webhooks #8

Open
dd310 opened this issue Jul 13, 2023 · 5 comments
Open

[Feature] Update entity that uses webhooks #8

dd310 opened this issue Jul 13, 2023 · 5 comments
Labels
enhancement New feature or request planned To be implemented in future release

Comments

@dd310
Copy link

dd310 commented Jul 13, 2023

Is your feature request related to a problem? Please describe.

It would be nice to have a way to monitor the availability of a new image for a stack/container and trigger the update from Home Assistant.

Describe the solution you'd like

I don't know if it's feasible, but maybe it could be possible to introduce an update. entity in Home Assistant that senses whether or not there is a new image available and sends a POST request to a specific stack webhook, triggering the image pull and the stack re-deployment.

@dd310 dd310 added the enhancement New feature or request label Jul 13, 2023
@dd310 dd310 changed the title [Feature] Update entity for stacks [Feature] Update entity that uses webhooks Jul 13, 2023
@tomaae
Copy link
Owner

tomaae commented Jul 13, 2023

As far as I know, docker in not aware of available update. You normally have to use watchtower.

@dd310
Copy link
Author

dd310 commented Jul 13, 2023

Currently I'm using WUD (https://github.com/fmartinou/whats-up-docker) and mqtt to receive a notification on HA when a new image is available. However, since it does not integrate with Portainer API, i still have to log in the instance and re-deploy manually.

I noticed there's a little dot next to the stack name in the portainer GUI that turns red when an image update is available, but I can't say if it could be useful.

Screenshot_20230714_002443_Chrome.jpg

EDIT

Searching online i found that the endpoint stacks/<stackID>/images_status should report the state of the images as either "updated" or "outdated"

@tomaae
Copy link
Owner

tomaae commented Jul 27, 2023

sure, I can check that

@solidminds
Copy link

Any update in this?

@tomaae
Copy link
Owner

tomaae commented Sep 27, 2023

No, I will be looking at it when I will be working on next feature update for this integration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request planned To be implemented in future release
Projects
None yet
Development

No branches or pull requests

3 participants