Boilerplate for implementing CI/CD for
- GitHub Actions
- NodeJs application
- Dockerised Application
- Heroku Deployment
Note You can run the ./update
executable to update your image and re-run
the container
Also, the .yml file relies on GitHub secrets. To set them up, go to Settings > Secrets > Add New Secret
You need to authenticate the runner that wants to push to Heroku. To do so:
-
Go to your
Heroku account > Account Settings
. Scroll to the bottom until you seeAPI Key
. Copy this key and go to your project's repository on GitHub. -
Add your herkou email to HEROKU_EMAIL secret
-
In your Repo, add a new secret called
HEROKU_API_KEY
and paste the copied API Key as the value.
You are now authenticated and can push to Heroku!