From e0762495897da7383b9436458f7e5f91bbab9499 Mon Sep 17 00:00:00 2001 From: Andru Cherny Date: Tue, 14 Jun 2022 13:09:39 +0300 Subject: [PATCH] test pipline --- .pipelines/build_image.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.pipelines/build_image.sh b/.pipelines/build_image.sh index 31c778a..cf8abbc 100644 --- a/.pipelines/build_image.sh +++ b/.pipelines/build_image.sh @@ -1,15 +1,10 @@ -function docker_build () { - echo CMD: docker build -t $1 . - pushd $2 && docker build -t $1 . && popd -} - function build_image() { echo "$(tput bold)$(tput setb 4)$(tput setaf 3)$1$(tput sgr0)" IMAGE=$2 DOCKER_PATH=$3 - docker_build ${IMAGE} ${DOCKER_PATH} + docker build -t ${IMAGE} ${DOCKER_PATH} } build_image "BUILD docker image" \ "$DOCKER_SERVER_HOST/$DOCKER_PROJECT_PATH:$DOCKER_IMAGE_VERSION" \ - Dockerfile \ No newline at end of file + ./ \ No newline at end of file