summaryrefslogtreecommitdiffstats
path: root/docker/smoke/hooks/post_checkout
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2017-08-10 08:58:43 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-10 08:58:43 +0000
commitcafd4b4d34bdebd8158c1b4c7b9dee272b570bb2 (patch)
tree612091d2d57a880ddc6b1541b512c19d54a4584d /docker/smoke/hooks/post_checkout
parent7a9a5e6c6eaa9f38eb455f4822934c60c7bc8fb5 (diff)
parentfd85ffb2053267297f7a777a936946aaee7b77c6 (diff)
Merge "Switch to Docker post_checkout hooks"
Diffstat (limited to 'docker/smoke/hooks/post_checkout')
-rw-r--r--docker/smoke/hooks/post_checkout6
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/smoke/hooks/post_checkout b/docker/smoke/hooks/post_checkout
new file mode 100644
index 000000000..20a6d4b95
--- /dev/null
+++ b/docker/smoke/hooks/post_checkout
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+from="${DOCKER_REPO%/*}/functest-core"
+sed -i "s|^FROM.*$|FROM ${from}|" Dockerfile
+
+exit $?