Skip to content

Merge pull request #41 from DVGY/feature=api/api-docs-and-tours-field #30

Merge pull request #41 from DVGY/feature=api/api-docs-and-tours-field

Merge pull request #41 from DVGY/feature=api/api-docs-and-tours-field #30

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