Spaces:
Sleeping
Sleeping
| name: Build Docker image and deploy to Heroku | |
| on: | |
| # Trigger the workflow on push or pull request, | |
| # but only for the main branch | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Login to Heroku Container registry | |
| env: | |
| HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} | |
| run: heroku container:login | |
| - name: Build and push | |
| env: | |
| HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} | |
| run: heroku container:push -a ai-personal-fitness-trainer web | |
| - name: Release | |
| env: | |
| HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} | |
| run: heroku container:release -a ai-personal-fitness-trainer web |