This can be easily done with spring-boot-gradle-plugin, and the image can be pushed to ghcr.io. Now when we deploy to Heroku, we rely on yet another build that is performed there, and we have to use some specific settings (configure Gradle build on Heroku dashboard, use Procfile in our repo), which makes this setup not easily transferable to other deployment setups.
This can be easily done with spring-boot-gradle-plugin, and the image can be pushed to ghcr.io. Now when we deploy to Heroku, we rely on yet another build that is performed there, and we have to use some specific settings (configure Gradle build on Heroku dashboard, use
Procfile
in our repo), which makes this setup not easily transferable to other deployment setups.