In the early days, we had to maintain two docker registries, one in AWS us-east-1 and the other in eu-west-1. This required us to build our containers and then push it to both registries. Below is a build.grade using Ben’s Gradle-Docker plugin to do the following:
This is how the build.grade looks like:
Note that you can also build this on Jenkins.
- Builds a docker container based on the Dockerfile in the root directory.
- Tag and push to both repos (us-east-1 and eu-west-1).
This is how the build.grade looks like:
Note that you can also build this on Jenkins.
No comments:
Post a Comment