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)
downloadgo-tangerine-f47adc9ea8f16544a023ea9b67d1ed320750c5e7.tar
go-tangerine-f47adc9ea8f16544a023ea9b67d1ed320750c5e7.tar.gz
go-tangerine-f47adc9ea8f16544a023ea9b67d1ed320750c5e7.tar.bz2
go-tangerine-f47adc9ea8f16544a023ea9b67d1ed320750c5e7.tar.lz
go-tangerine-f47adc9ea8f16544a023ea9b67d1ed320750c5e7.tar.xz
go-tangerine-f47adc9ea8f16544a023ea9b67d1ed320750c5e7.tar.zst
go-tangerine-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