diff options
author | yangyan <yangyanyj@chinamobile.com> | 2019-05-10 16:10:12 +0800 |
---|---|---|
committer | yangyan <yangyanyj@chinamobile.com> | 2019-05-10 16:30:57 +0800 |
commit | f8ad221b968ac85391d79a11db6546c933947f9d (patch) | |
tree | 09d61283a7a5ab915358e5a57d57b3731d204383 /docker/build_image.sh | |
parent | c363c2c9e5fd2cad61d9f64bea3d1a911e13e987 (diff) |
Add ARG PKG_VERSION to Dockerfile
Change-Id: I5b5aa75a3838a87c2f0aabcd4d721dc36d072be3
Issue-ID: VFC-1383
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'docker/build_image.sh')
-rw-r--r--[-rwxr-xr-x] | docker/build_image.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docker/build_image.sh b/docker/build_image.sh index aec34555..9b050a71 100755..100644 --- a/docker/build_image.sh +++ b/docker/build_image.sh @@ -13,6 +13,8 @@ DOCKER_REPOSITORY="nexus3.onap.org:10003" IMAGE_NAME="${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/${IMAGE}" TIMESTAMP=$(date +"%Y%m%dT%H%M%S") +BUILD_ARGS+=" --build-arg PKG_VERSION=${VERSION}" + if [ $HTTP_PROXY ]; then BUILD_ARGS+=" --build-arg HTTP_PROXY=${HTTP_PROXY}" fi |