summaryrefslogtreecommitdiffstats
path: root/build.sh
blob: e4d9b6af4e8bfd51027069ff69e285ddf8e50a35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

set -e

repo=${repo:-opnfv}
dirs="\
docker/core \
docker/healthcheck \
docker/smoke \
docker/features \
docker/components \
docker/vnf \
docker/parser \
docker/restapi"

(cd docker && docker build -t "${repo}/functest" .)
docker push "${repo}/functest:euphrates"

for dir in ${dirs}; do
    (cd ${dir} && docker build -t "${repo}/functest-${dir##**/}:euphrates" .)
    docker push "${repo}/functest-${dir##**/}:euphrates"
done

exit $?