pedroeagle/Trabalho-Individual-2020-2

View on GitHub
.github/workflows/cd-client.yml

Summary

Maintainability
Test Coverage
name: Deploy CLIENT

on:
  push:
    branches: [master]
  pull_request:
    branches: [ master ]
jobs:
  build:
    runs-on: ubuntu-latest
    if: github.ref == 'refs/heads/master'
    steps:
      - uses: actions/checkout@v2
      - uses: gonuit/heroku-docker-deploy@v1.3.2 
        with:
          dockerfile_directory: ./client
          dockerfile_name: dockerfile.prod
          docker_options: "--no-cache"
          process_type: web
          
          email: ${{ secrets.HEROKU_EMAIL }}
          heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
          heroku_app_name: ${{ secrets.HEROKU_APP_NAME_CLIENT }}