aboutsummaryrefslogtreecommitdiffstats
path: root/docker/features
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2017-10-02 13:12:40 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2017-10-02 13:13:25 +0200
commit29647efa114151d53ede5ba2d989593992c0b29f (patch)
tree4f3095c58ae7acf81846dafaf4ecb469346e8072 /docker/features
parent36b648a6e928ac0819a607cd2231faa803418b7a (diff)
Add ${DOCKER_TAG} in Docker hooks
It eases creating Docker images based on branches or tags. Change-Id: Id84513c53cad72a1fcd0debf06579481609b8bc2 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'docker/features')
-rw-r--r--docker/features/hooks/post_checkout2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/features/hooks/post_checkout b/docker/features/hooks/post_checkout
index 20a6d4b95..8d0e98124 100644
--- a/docker/features/hooks/post_checkout
+++ b/docker/features/hooks/post_checkout
@@ -1,6 +1,6 @@
#!/bin/bash
-from="${DOCKER_REPO%/*}/functest-core"
+from="${DOCKER_REPO%/*}/functest-core:${DOCKER_TAG}"
sed -i "s|^FROM.*$|FROM ${from}|" Dockerfile
exit $?