summaryrefslogtreecommitdiffstats
path: root/docker/hooks
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-01-07 21:32:26 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2018-01-07 21:32:26 +0100
commit06ac7d04657838524dcf18e8442988fd43c53404 (patch)
treed8a74def67225dd41fe73f198be9f780761753e6 /docker/hooks
parent3b0e0f62963c2fc1f7f02e5fa1380d0cbd596ebf (diff)
Add Docker post_checkout hook
Change-Id: I6a24d42d7830209316e705b8e68fe29c53350c35 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'docker/hooks')
-rw-r--r--docker/hooks/post_checkout6
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/hooks/post_checkout b/docker/hooks/post_checkout
new file mode 100644
index 00000000..8d0e9812
--- /dev/null
+++ b/docker/hooks/post_checkout
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+from="${DOCKER_REPO%/*}/functest-core:${DOCKER_TAG}"
+sed -i "s|^FROM.*$|FROM ${from}|" Dockerfile
+
+exit $?