diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2016-09-06 12:07:29 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-09-06 12:07:29 +0000 |
commit | 1a1d78d221e45c7299a6264a7f79349a351d4fd4 (patch) | |
tree | 127404007c5fb2c68cf6de053d86f1a18252e8b4 /jjb | |
parent | f52da7a2a02fb17836063272351b56a6aff31d06 (diff) | |
parent | 879977651ff80cbc5f3ef5b7f4e4acc53451e30f (diff) |
Merge "[Docker] Add git branch as an argument to the dockerfile at build time"
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/opnfv/opnfv-docker.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jjb/opnfv/opnfv-docker.sh b/jjb/opnfv/opnfv-docker.sh index ef4738482..860eee05d 100644 --- a/jjb/opnfv/opnfv-docker.sh +++ b/jjb/opnfv/opnfv-docker.sh @@ -110,7 +110,7 @@ echo "Tag version to be build and pushed: $DOCKER_TAG" # Start the build echo "Building docker image: $DOCKER_REPO_NAME:$DOCKER_BRANCH_TAG" -docker build --no-cache -t $DOCKER_REPO_NAME:$DOCKER_BRANCH_TAG . +docker build --no-cache -t $DOCKER_REPO_NAME:$DOCKER_BRANCH_TAG --build-arg BRANCH=$branch . echo "Creating tag '$DOCKER_TAG'..." docker tag -f $DOCKER_REPO_NAME:$DOCKER_BRANCH_TAG $DOCKER_REPO_NAME:$DOCKER_TAG |