Question

🚉 Deploy branch from GitHub Actions to App Platform

I have an existing app in app platform and I want to this:

  1. Create PR on GitHub
  2. Deploy branch to app platform to url like: pr-123.myapp.com

Is this possible? Specifically deploying a specific branch to a specific custom sub-domain?


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.

Bobby Iliev
Site Moderator
Site Moderator badge
February 13, 2023

Hi there,

One option to do this would be to use the doctl CLI tool along with the doctl GitHub action:

https://github.com/digitalocean/action-doctl

That way you will be able to create a new App on the App Platform using the doctl apps command:

https://docs.digitalocean.com/reference/doctl/reference/apps/

Hope that this helps!

Best,

Bobby

Try DigitalOcean for free

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

Sign up