heroku-docker-deploy icon indicating copy to clipboard operation
heroku-docker-deploy copied to clipboard

Dockerfile not found

Open texdade opened this issue 3 years ago • 2 comments

Hi!

I just set up a workflow using this action, but it fails as it cannot find the Dockerfile. The error log is:

Error: File: "Dockerfile" does not exist.

but the Dockerfile is in the root of my project. This is how I set up the action:

name: Heroku container deploy

# Controls when the action will run. 
on:
  # Triggers the workflow on push but only for the master branch
  push:
    branches: [ master ]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: Build, Push and Release a Docker container to Heroku.
        uses: gonuit/[email protected]
        with:
          email: ${{ secrets.HEROKU_EMAIL }}
          heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
          heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
          dockerfile_directory: ./
          dockerfile_name: Dockerfile
          process_type: web     

In case it's needed, the repo is public

texdade avatar Oct 23 '21 13:10 texdade

Getting same issue, @gonuit please provide solution.

mohit000001 avatar Apr 19 '22 18:04 mohit000001

You need to checkout the branch first

Vivek-Raman avatar Jun 13 '22 19:06 Vivek-Raman