fix: upgrading virtualenv pip #17
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 publish docker image | |
on: | |
push: | |
branches: [ "master", "develop" ] | |
pull_request: | |
branches: [ "master", "develop" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build the Docker image | |
run: docker build . -t ghcr.io/razdeep/cfpredictor:latest | |
- name: login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GHCR_TOKEN }} | |
- name: Publish image | |
run: docker push ghcr.io/razdeep/cfpredictor:latest | |
- name: Deploy to heroku | |
# uses: gonuit/heroku-docker-deploy@9ab97585f979857642d66612a2ae4062b3347d53 | |
# This action rebuild the docker image again (though it is built earlier once) and pushes to heroku | |
uses: gonuit/[email protected] | |
with: | |
heroku_app_name: codeforces-rating-predictor | |
email: [email protected] | |
heroku_api_key: ${{ secrets.HEROKU_API_KEY }} |