aboutsummaryrefslogtreecommitdiffstats
path: root/.dockerignore
diff options
context:
space:
mode:
authorArba Sasmoyo <arba.sasmoyo@gmail.com>2017-11-13 04:00:18 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-11-13 04:00:18 +0800
commitf47adc9ea8f16544a023ea9b67d1ed320750c5e7 (patch)
treecb3ac5d8294096c702c0a38ae689e729453a187b /.dockerignore
parent86f6568f6618945b19057553ec32690d723da982 (diff)
downloaddexon-f47adc9ea8f16544a023ea9b67d1ed320750c5e7.tar.gz
dexon-f47adc9ea8f16544a023ea9b67d1ed320750c5e7.tar.zst
dexon-f47adc9ea8f16544a023ea9b67d1ed320750c5e7.zip
.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
Diffstat (limited to '.dockerignore')
-rw-r--r--.dockerignore3
1 files changed, 3 insertions, 0 deletions
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