Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 1 | #!/bin/bash |
2 | # | ||||
3 | echo '============== STARTING SCRIPT TO BUILD DOCKER IMAGES =================' | ||||
4 | |||||
5 | for image in policy-os policy-nexus policy-db policy-base policy-drools policy-pe ; do | ||||
6 | mkdir -p target/$image | ||||
7 | cp $image/* target/$image | ||||
8 | docker build --quiet --tag ${DOCKER_REPOSITORY}/policy/$image target/$image | ||||
9 | done | ||||
10 | |||||
11 | for image in policy-nexus policy-db policy-drools policy-pe; do | ||||
12 | docker push ${DOCKER_REPOSITORY}/policy/$image | ||||
13 | done |