diff options
author | 2016-09-06 11:53:39 +0200 | |
---|---|---|
committer | 2016-09-06 11:53:39 +0200 | |
commit | 879977651ff80cbc5f3ef5b7f4e4acc53451e30f (patch) | |
tree | 0028ca1f33d4ac6d8308a72157b6e4cffab0566e | |
parent | cbe3739fbbbf50ec74dcde145e86087698d5e2a9 (diff) |
[Docker] Add git branch as an argument to the dockerfile at build time
This will be useful for the dockerfiles which need to have this
as a parameter to clone the respective repositories.
Needed for Functest.
Related JIRA: FUNCTEST-458
Change-Id: I6c818bdbc6d9935a6bf5274487540309ce1017b6
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
-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 |