Skip to content

Commit 6004e51

Browse files
authored
Explicitly include .git in Google Cloud Builds (#92)
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 51ee5e0 commit 6004e51

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)