heroku-deploy icon indicating copy to clipboard operation
heroku-deploy copied to clipboard

How to deploy to Review Apps using a random app name?

Open StanleySathler opened this issue 3 years ago • 2 comments

Thanks for the great job, guys! :star2:

Is there any way to configure it so deploys are made to Review Apps in a Pipeline? I need to deploy my PRs to isolate Review Apps so they have a unique URL.

StanleySathler avatar May 22 '21 02:05 StanleySathler

I've been trying to figure this out as well with no luck.

picklewagon avatar Jun 09 '21 22:06 picklewagon

@picklewagon mostly sure that's not possible with this action.

This is how I did this:

  1. Compress the file (.tgz) and send it to a bucket (I'm using Google Cloud Storage). You can find actions to zip and send files to a cloud bucket. Then you need to generate a signed download link. This is needed 'cause the Heroku API requires a link to download the files - it doesn't fetch your repository.
  2. Create a Review App using Heroku API. For some reason Heroku CLI doesn't have such an option, so you really need to use their API (which is poorly documented, by the way).

References: https://devcenter.heroku.com/articles/platform-api-reference#review-app-create

StanleySathler avatar Jun 10 '21 19:06 StanleySathler