Hi,
I’m using the App Platform to host a static site built with a headless CMS (Flotiq).
The site owner wants to be able to trigger a deployment from a webhook (via a button on Flotiq), but only have the site update at midnight the following day, for example. This is so news posts can be scheduled, rather than published immediately.
Is this possible? The guide here was perfect for immediate deployment, but I can’t anything that would help make it a delayed deployment.
Many thanks for any help! Chris
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Heya,
You can check this article on how to run a scheduled function:
https://docs.digitalocean.com/products/functions/how-to/schedule-functions/
To run functions on a schedule, you can create a function trigger and then specify a schedule using standard cron syntax. Each trigger is attached to a single function, but functions can have multiple triggers with different schedules and payloads.
Regards
Hey there,
is your code within a gitlab or github repo? Just create a certain branch, assign it to your DO platform app and run a scheduled pipeline. Once the pipeline is triggered it will also trigger a deployement.
I guess it should work that way without any issues.
Best regards, Oliver