- Follow the link to install Heroku CLI for your OS.
- After installation, go to your IDE terminal and run
heroku login
. - You would get an option to press any key to open your browser.
- Login to Heroku on your browser. This action automatically logs you in on Heroku CLI.
- Commit your code as needed using
git commit
or your commit style of choice and push to your git repository usinggit push
or your push style of choice. - Run
bash heroku_deploy.sh
to deploy your code to Heroku.
I decided to use the lesson on course 3 of the Cloud Developer Nanodegree titled Automating the Application Development Lifecycle to avoid duplication
In Automating the Application Development Lifecycle Module, Lesson 10 & Lesson 11 explain how to build your Docker image on Travis CI.
To sheds more light on using Travis CI, this documentation breaks down the commands into simple bits: https://docs.travis-ci.com/user/docker/
To sheds more light on using GitHub Actions, this documentation breaks down the commands into simple bits: https://docs.github.com/en/actions
├── .github
│ ├── workflows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: backend-feed | |
labels: | |
app: backend-feed | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: |