Merge pull request #42 from DVGY/fix/file-import #31
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: heroku-tours-server-depl | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'tours-server/**' | |
- 'nginx/**' | |
workflow_dispatch: | |
defaults: | |
run: | |
working-directory: ./tours-server | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: docker build -t dvgy/tours-server-heroku . | |
- run: docker images | |
- name: Login to conatiner registry | |
env: | |
HEROKU_API_KEY: ${{secrets.HEROKU_API_KEY}} | |
run: heroku container:login | |
- name: Push to Container | |
env: | |
HEROKU_API_KEY: ${{secrets.HEROKU_API_KEY}} | |
run: heroku container:push -a ${{ secrets.HEROKU_APP_NAME }} web | |
- name: Realase Container | |
env: | |
HEROKU_API_KEY: ${{secrets.HEROKU_API_KEY}} | |
run: heroku container:release -a ${{ secrets.HEROKU_APP_NAME }} web | |