Simple to use Gradle Plugin to build, tag and push Docker Images. Supports Multi-Module-Projects, build caching, Java 8 and runs on Gradle 6+ and 7+.
Apply the plugin:
plugins {
id 'com.github.jazzschmidt.gradle-docker-plugin' version '<version>'
}
All projects that have a
docker
directory will be configured with the docker tasks.
Suppose the following project structure:
- :root: project
- build.gradle
- :example: project
- docker/
- Dockerfile
- config.toml
- docker/