diff options
author | fengyuanxing <feng.yuanxing@zte.com.cn> | 2017-09-06 16:07:44 +0800 |
---|---|---|
committer | fengyuanxing <feng.yuanxing@zte.com.cn> | 2017-09-06 16:21:19 +0800 |
commit | 76f3faa67bcd60ec2878afedf3872fb3508769c9 (patch) | |
tree | db4057038fd50df1eebd88d2be251f9f8b14f4cd /docker/build_image.sh | |
parent | 5c4dd794745980b8ea526141e0c45ffa4274b940 (diff) |
Modify scripts renaming methods
Change-Id: I87aa34de1817c5060005dd4af7c1029e10a8fa79
Issu-Id: VFC-264
Signed-off-by: fengyuanxing <feng.yuanxing@zte.com.cn>
Diffstat (limited to 'docker/build_image.sh')
-rwxr-xr-x | docker/build_image.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docker/build_image.sh b/docker/build_image.sh index 79695456..2a7943ed 100755 --- a/docker/build_image.sh +++ b/docker/build_image.sh @@ -19,16 +19,16 @@ if [ $HTTPS_PROXY ]; then BUILD_ARGS+=" --build-arg HTTPS_PROXY=${HTTPS_PROXY}" fi -function build_catalog { +function build_image { echo "Start build docker image: ${IMAGE_NAME}" docker build ${BUILD_ARGS} -t ${IMAGE_NAME}:${VERSION} -t ${IMAGE_NAME}:latest . } -function push_catalog { +function push_image { echo "Start push docker image: ${IMAGE_NAME}" docker push ${IMAGE_NAME}:${VERSION} docker push ${IMAGE_NAME}:latest } -build_catalog -push_catalog +build_image +push_image |