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!
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
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.