Skip to content

Commit 6e58c00

Browse files
committed
Explicitly include .git in Google Cloud Builds
To include VCS data in the controller binary, our image build process requires .git to be present in the working directory. Google Cloud Build, the system used by the Kubernetes project to build container images, ignores .git by default. Explicitly include .git in the GCB environment through a .gcloudignore file. Reference: GoogleCloudPlatform/cloud-builders#236 (comment)
1 parent 56b8bb3 commit 6e58c00

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.gcloudignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Explicitly include .git in Google Cloud Builds as it is needed by Dockerfile.
2+
!.git

0 commit comments

Comments
 (0)