aboutsummaryrefslogtreecommitdiffstats
path: root/docker/cnf/hooks/post_checkout
diff options
context:
space:
mode:
Diffstat (limited to 'docker/cnf/hooks/post_checkout')
-rw-r--r--docker/cnf/hooks/post_checkout6
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/cnf/hooks/post_checkout b/docker/cnf/hooks/post_checkout
new file mode 100644
index 00000000..919a325f
--- /dev/null
+++ b/docker/cnf/hooks/post_checkout
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+from="${DOCKER_REPO%/*}/functest-kubernetes-vnf:${DOCKER_TAG}"
+sed -i "s|^FROM.*$|FROM ${from}|" Dockerfile
+
+exit $?