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