diff options
author | Arba Sasmoyo <arba.sasmoyo@gmail.com> | 2017-11-13 04:00:18 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-11-13 04:00:18 +0800 |
commit | f47adc9ea8f16544a023ea9b67d1ed320750c5e7 (patch) | |
tree | cb3ac5d8294096c702c0a38ae689e729453a187b /.dockerignore | |
parent | 86f6568f6618945b19057553ec32690d723da982 (diff) | |
download | dexon-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-- | .dockerignore | 3 |
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 |