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

Add multi image and dedicated dockerfile support

Open janz93 opened this issue 4 years ago • 3 comments

With the usage of --recursive it will be possible to push multiple Dockerfiles within one deployment. Additionally, it will be possible to create a dedicated production-ready Dockerfile suffixed with the process type.

closes #75 closes #81

janz93 avatar Sep 19 '21 20:09 janz93

Was using this action today in my project and this option is the only missing part. Would love to see this merged!

ghostwriternr avatar Dec 27 '21 13:12 ghostwriternr

I also came to the point where I need to specify a dockerfile. Would love to see this one merged too.

kiliw avatar Jan 12 '22 13:01 kiliw

Workaround: For now I just renamed the dockerfiles before the heroku action

// workflow.yml
jobs:
   build:
      runs-on: ubuntu-latest
      steps:
         - uses: actions/checkout@v2
         - name: 'Copy and rename dockerfile' # workaround 
           run: |
              mv Dockerfile.dev Dockerfile
         - uses: akhileshns/[email protected] # This is the action
           with:
              heroku_api_key: ${{secrets.HEROKU_API_KEY}}
              heroku_app_name: 'api' #Must be unique in Heroku
              heroku_email: ''
              usedocker: true
              # docker_heroku_push_recursive: Dockerfile.dev # TODO: Add once https://github.com/AkhileshNS/heroku-deploy/pull/99 is done

kiliw avatar Jan 13 '22 09:01 kiliw