Skip to content

Commit

Permalink
adding automatic heroku push
Browse files Browse the repository at this point in the history
  • Loading branch information
viraatdas committed Mar 24, 2024
1 parent 600fa9b commit 5b9215c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deploy-to-heroku.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy to Heroku

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Log in to Heroku Container Registry
run: heroku container:login
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}

- name: Push Docker container to Heroku
run: heroku container:push web --app colony-counter
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}

- name: Release the container
run: heroku container:release web --app colony-counter
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}

0 comments on commit 5b9215c

Please sign in to comment.