Merge pull request #53 from oyaprotocol/dk/assignDeposit #85
This file contains hidden or 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 # Change this to your desired branch | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Install Heroku CLI | |
| run: | | |
| curl https://cli-assets.heroku.com/install.sh | sh | |
| - name: Log in to Heroku Container Registry | |
| run: heroku container:login | |
| env: | |
| HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} | |
| - name: Build and Push Docker Image to Heroku | |
| uses: docker/build-push-action@v3 | |
| with: | |
| context: . | |
| file: ./Dockerfile | |
| platforms: linux/amd64 | |
| push: true | |
| tags: registry.heroku.com/${{ secrets.HEROKU_APP_NAME }}/web:latest | |
| provenance: false | |
| - name: Release Image on Heroku | |
| run: heroku container:release web --app ${{ secrets.HEROKU_APP_NAME }} | |
| env: | |
| HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} |