Hi! Thank you very much for the article! We use heroku for almost all of our projects, really love it!
Is there a way to deploy from github only when a release is created? I believe itβs only possible to select a branch from the github integration in heroku, but we only release to production when creating tags.
Great question. Review apps can only be triggered by branches, not by tags. What that means is that if they build a pipeline that orchestrates branches and tags to work together, they can have a tagged branch be auto-deployed to a review app and it can work with whatever their current tag + release system is. But that's a bit of a complex solution, so the pragmatic answer is probably closer to: you can use review apps to test things before you merge them, but you'll still need to tag them for prod if deployments are based on GitHub's releases system.
Hope this answer is helpful.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi! Thank you very much for the article! We use heroku for almost all of our projects, really love it!
Is there a way to deploy from github only when a release is created? I believe itβs only possible to select a branch from the github integration in heroku, but we only release to production when creating tags.
Thank you!
Hi Javier,
Great question. Review apps can only be triggered by branches, not by tags. What that means is that if they build a pipeline that orchestrates branches and tags to work together, they can have a tagged branch be auto-deployed to a review app and it can work with whatever their current tag + release system is. But that's a bit of a complex solution, so the pragmatic answer is probably closer to: you can use review apps to test things before you merge them, but you'll still need to tag them for prod if deployments are based on GitHub's releases system.
Hope this answer is helpful.