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