Skip to content

Commit

Permalink
test pipline
Browse files Browse the repository at this point in the history
  • Loading branch information
wirwolf committed Jun 14, 2022
1 parent 6a0ee7e commit e076249
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .pipelines/build_image.sh
Original file line number Diff line number Diff line change
@@ -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
./

0 comments on commit e076249

Please sign in to comment.