Home > Net >  heroku.yml not respecting docker build target
heroku.yml not respecting docker build target

Time:12-19

Either I'm doing something wrong or Heroku is messing up. Heroku supports dev follows base

and then prod follows dev

prod follows dev

I would expect it to jump from base to prod, skipping dev.

Is this an issue on my side or Heroku's?

CodePudding user response:

I haven't tested this with heroku.yml because I've moved to GitHub Actions but I believe the error was having prod come after dev. Apparently the --target flag in docker build means it will stop at that stage, so it will run everything before it.

  • Related