Skip to content

Instantly share code, notes, and snippets.

View seun-beta's full-sized avatar
🔥
Building & Learning

Seunfunmi Adegoke seun-beta

🔥
Building & Learning
View GitHub Profile
@seun-beta
seun-beta / README.md
Last active May 16, 2022 14:37
Seunfunmi Adegoke's workaround for deploying to Heroku due to the GitHub-Heroku Token security breach

Heroku-GitHub Integration Continuous Deployment Issue Workaround

  • 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 using git push or your push style of choice.
  • Run bash heroku_deploy.sh to deploy your code to Heroku.

Using Travis CI to build your Docker Image

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/

N/B: your file must be named .travis.yml NOT .travis.yaml

Using GitHub Actions to build your Docker Image

To sheds more light on using GitHub Actions, this documentation breaks down the commands into simple bits: https://docs.github.com/en/actions

N/B: your file must end with .yml OR .yaml

File structure for using GitHub Actions in your project folder.

├── .github
│   ├── workflows
apiVersion: apps/v1
kind: Deployment
metadata:
name: backend-feed
labels:
app: backend-feed
spec:
replicas: 2
selector:
matchLabels: