rsync git directories into kube-build

This commit is contained in:
Christoph Blecker
2017-05-23 22:39:03 -07:00
parent e89ab20ceb
commit d3b838b608
3 changed files with 10 additions and 6 deletions

View File

@@ -682,14 +682,10 @@ function kube::build::sync_to_container() {
# they will not be re-generated by 'make'.
kube::build::rsync \
--delete \
--filter='+ /staging/**' \
--filter='- /.git/' \
--filter='- /.make/' \
--filter='- /_tmp/' \
--filter='- /_output/' \
--filter='- /' \
--filter='- zz_generated.*' \
--filter='- generated.proto' \
"${KUBE_ROOT}/" "rsync://k8s@${KUBE_RSYNC_ADDR}/k8s/"
kube::build::stop_rsyncd_container
@@ -715,8 +711,9 @@ function kube::build::copy_output() {
# We are looking to copy out all of the built binaries along with various
# generated files.
kube::build::rsync \
--filter='- /vendor/' \
--filter='- /_temp/' \
--filter='+ /vendor/' \
--filter='+ /Godeps/' \
--filter='+ /_output/dockerized/bin/**' \
--filter='+ zz_generated.*' \
--filter='+ generated.proto' \