Script to start review scripts
Creates review apps on Heroku. Called by this pipeline https://gitlab.com/snippets/1716930
Very nice, although I'd recommend using the Heroku API through dpl instead of using git to push to Heroku, i.e. something like (depending on your CI base image):
apt-get update -qy apt-get install -y ruby-dev gem install dpl dpl --provider=heroku --app=$PROJECT_NAME-$CI_COMMIT_REF_SLUG --api-key=$HEROKU_API_KEY
Thanks for the tip, David!
Someone asked (although that comment seems to be gone now, but I still think its a good question) if you still need to create the app in Heroku when using
dpl: Yes, of course, the dpl part can be used instead of the
gitcommands in the snippet above, you'd still need the initial curl call to the Heroku API to create the app.