6 amd64_dirs=${amd64_dirs-"\
12 arm64_dirs=${arm64_dirs-${amd64_dirs}}
13 build_opts=(--pull=true --no-cache --force-rm=true)
15 find . -name Dockerfile -exec sed -i \
16 -e "s|opnfv/functest-kubernetes-core:jerma|\
17 ${repo}/functest-kubernetes-core:amd64-jerma|g" {} +
18 find . -name Dockerfile -exec sed -i \
19 -e "s|opnfv/functest-kubernetes-healthcheck:jerma|\
20 ${repo}/functest-kubernetes-healthcheck:amd64-jerma|g" {} +
21 for dir in ${amd64_dirs}; do
23 docker build "${build_opts[@]}" \
24 -t "${repo}/functest-kubernetes-${dir##**/}:amd64-jerma" .)
25 docker push "${repo}/functest-kubernetes-${dir##**/}:amd64-jerma"
26 [ "${dir}" != "docker/core" ] &&
28 "${repo}/functest-kubernetes-${dir##**/}:amd64-jerma" || true)
30 [ ! -z "${amd64_dirs}" ] &&
32 "${repo}/functest-kubernetes-core:amd64-jerma" \
33 golang:1.13-alpine3.10 || true)
34 find . -name Dockerfile -exec git checkout {} +
36 find . -name Dockerfile -exec sed -i \
37 -e "s|golang:1.13-alpine3.10|arm64v8/golang:1.13-alpine3.10|g" {} +
38 find . -name Dockerfile -exec sed -i \
39 -e "s|opnfv/functest-kubernetes-core:jerma|\
40 ${repo}/functest-kubernetes-core:arm64-jerma|g" {} +
41 find . -name Dockerfile -exec sed -i \
42 -e "s|opnfv/functest-kubernetes-healthcheck:jerma|\
43 ${repo}/functest-kubernetes-healthcheck:arm64-jerma|g" {} +
44 for dir in ${arm64_dirs}; do
45 (cd "${dir}" && docker build "${build_opts[@]}" \
46 -t "${repo}/functest-kubernetes-${dir##**/}:arm64-jerma" .)
47 docker push "${repo}/functest-kubernetes-${dir##**/}:arm64-jerma"
48 [ "${dir}" != "docker/core" ] &&
50 "${repo}/functest-kubernetes-${dir##**/}:arm64-jerma" || true)
52 [ ! -z "${arm64_dirs}" ] &&
53 (docker rmi "${repo}/functest-kubernetes-core:arm64-jerma" \
54 arm64v8/golang:1.13-alpine3.10 || true)
55 find . -name Dockerfile -exec git checkout {} +