fixes #14
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: Build and Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Heroku CLI | |
run: curl https://cli-assets.heroku.com/install.sh | sh | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: _ | |
password: ${{ secrets.HEROKU_API_KEY }} | |
registry: registry.heroku.com | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
push: true | |
tags: registry.heroku.com/${{ secrets.HEROKU_APP_NAME }}/web | |
- name: Release Docker container on Heroku | |
env: | |
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} | |
run: heroku container:release web -a ${{ secrets.HEROKU_APP_NAME }} |