adding workflow badge #3
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
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 }} | |
working-directory: ./backend | |
- name: Push Docker container to Heroku | |
run: heroku container:push web --app colony-counter | |
env: | |
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} | |
working-directory: ./backend | |
- name: Release the container | |
run: heroku container:release web --app colony-counter | |
env: | |
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} | |
working-directory: ./backend | |