Fixed build.sh file

This commit is contained in:
Alexander Zavorotynskiy 2022-05-03 13:55:56 +02:00
parent b2456e9ac6
commit 414fbee962

View file

@ -38,12 +38,10 @@ function build_api(){
case "$image" in
http)
echo build http
cd cmd
docker build -t ${DOCKER_REPO:-'local'}/$image:${git_sha1} --build-arg SERVICE_NAME=$image -f ../backend .
docker build -t ${DOCKER_REPO:-'local'}/$image:${git_sha1} --build-arg SERVICE_NAME=$image -f ./cmd/Dockerfile .
[[ $PUSH_IMAGE -eq 1 ]] && {
docker push ${DOCKER_REPO:-'local'}/$image:${git_sha1}
}
cd ../
;;
*)
docker build -t ${DOCKER_REPO:-'local'}/$image:${git_sha1} --build-arg SERVICE_NAME=$image .