I want to create an auto-deploy every time I get new commits in the master or develop branch but I don't want to activate Auto Deploy in Pipeline Panel.
I have this app.json:
{
"addons": [],
"buildpacks": [
{
"url": "siesgstarena/heroku-buildpack-mongo"
},
{
"url": "heroku/nodejs"
}
],
"environments": {
"test": {
"scripts": {
"test-setup": "if [ $HEROKU_TEST_RUN_BRANCH == 'master' ] || [ $HEROKU_TEST_RUN_BRANCH == 'develop' ]; then npm run build; fi",
"test": "if [ $HEROKU_TEST_RUN_BRANCH == 'master' ] || [ $HEROKU_TEST_RUN_BRANCH == 'develop' ]; then npm test; fi"
}
}
},
"formation": {
"web": {
"quantity": 1
}
},
"name": "xxxxxxxxxxxxx",
"stack": "heroku-18"
}
I have a deploy-all.sh file and I want to run this file after tests pass. I haven't found where I should put something to execute after tests.
I need help with these settings.