Question

How to schedule a deployment of a static site within App Platform

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


Submit an answer


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!

Sign In or Sign Up to Answer

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.

alexdo
Site Moderator
Site Moderator badge
September 29, 2023

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

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel