From 4670890a82975c78e2403c08ea85542a7eea11ee Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Fri, 16 Jul 2021 09:51:46 -0700 Subject: [PATCH] Add .git dir to Docker; used to bake git sha into binary --- .dockerignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.dockerignore b/.dockerignore index 85312f5d..54175491 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,4 +1,6 @@ ./.* +# Allow .git to get copied into the container so we can use it in hack/get-ldflags.sh during build. +!/.git ./*.md ./*.yaml ./apis