From f47adc9ea8f16544a023ea9b67d1ed320750c5e7 Mon Sep 17 00:00:00 2001 From: Arba Sasmoyo Date: Mon, 13 Nov 2017 03:00:18 +0700 Subject: .dockerignore, internal/build: Read git information directly from file (#15458) * .dockerignore, internal/build: Read git information directly from file This commit changes the way of retrieving git commit and branch for build environment from running git command to reading git files directly. This commit also adds required git files into Docker build context. fixes: #15346 * .dockerignore: workaround for including some files in .git --- .dockerignore | 3 +++ 1 file changed, 3 insertions(+) (limited to '.dockerignore') diff --git a/.dockerignore b/.dockerignore index 07eab0766..751ff2a0c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,4 +1,7 @@ **/.git +/.git +!/.git/HEAD +!/.git/refs/heads **/*_test.go build/_workspace -- cgit v1.2.3