Run script before calling webhook (or after fail & retry) #5502

Closed
opened 2025-11-02 06:26:51 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @bobemoe on GitHub (Jun 5, 2020).

My drone cloud server is infrequently used so remains off most of the time. I have bash scripts to boot it up and shut it down. At the moment it has to be booted before repo push or the CI fails. Is there any way to call these scripts in the right place so that the drone webhooks work seamlessly?

I've thought of proxying the webhook to boot the server if its not up, but the boot time is several mins and I expect the request would time out.

Can I detect failed webhook deliveries somehow? And use the API to re deliver them once the drone server is up?

Or is there a better way to do this?

Thanks :)

Originally created by @bobemoe on GitHub (Jun 5, 2020). My drone cloud server is infrequently used so remains off most of the time. I have bash scripts to boot it up and shut it down. At the moment it has to be booted before repo push or the CI fails. Is there any way to call these scripts in the right place so that the drone webhooks work seamlessly? I've thought of proxying the webhook to boot the server if its not up, but the boot time is several mins and I expect the request would time out. Can I detect failed webhook deliveries somehow? And use the API to re deliver them once the drone server is up? Or is there a better way to do this? Thanks :)
GiteaMirror added the issue/stale label 2025-11-02 06:26:51 -06:00
Author
Owner

@stale[bot] commented on GitHub (Aug 9, 2020):

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale[bot] commented on GitHub (Aug 9, 2020): This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.
Author
Owner

@stale[bot] commented on GitHub (Aug 24, 2020):

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale[bot] commented on GitHub (Aug 24, 2020): This issue has been automatically closed because of inactivity. You can re-open it if needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5502