DEV Community

Discussion on: Deploying to Heroku from GitHub Actions

Collapse
 
sabiou profile image
Farouk Sabiou • Edited

Hi, thanks for the article. I followed the same step to configure an heroku deployment but I get this error:

Run heroku container:push -a habu-server web
heroku container:push -a habu-server web
shell: /bin/bash -e {0}
env:
HEROKU_API_KEY: ***
› Warning: heroku update available from 7.47.3 to 7.47.4.
▸ No images to push
Error: Process completed with exit code 1.

Collapse
 
gusbemacbe profile image
Gustavo Costa

Change ubuntu-latest to ubuntu-20.04.

Add this source code before Login to Heroku Container registry

    - name: Update Heroku
      env: 
        HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
      run: sudo apt update && sudo apt install heroku
Enter fullscreen mode Exit fullscreen mode
Collapse
 
r0nunes profile image
Renato O. Nunes • Edited

Hey!!

I tried to add the code above, but I still have the same error

Collapse
 
frenzyfunky profile image
Yağız Yorulmazlar

Is your Dockerfile in a subdirectory? If so, change the Dockerfile file name as "Dockerfile.web" and modify heroku push command as "heroku container:push -a $APP_NAME --context-path . --recursive"
In here recursive searches Dockerfiles in current and subdirectories, context-path is specifies build context which is root directory.