From 06ac7d04657838524dcf18e8442988fd43c53404 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sun, 7 Jan 2018 21:32:26 +0100 Subject: Add Docker post_checkout hook MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I6a24d42d7830209316e705b8e68fe29c53350c35 Signed-off-by: Cédric Ollivier --- docker/hooks/post_checkout | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 docker/hooks/post_checkout (limited to 'docker/hooks') 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 $? -- cgit 1.2.3-korg