summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLantao Liu <taotaotheripper@gmail.com>2019-04-12 14:55:11 -0700
committerIan Lewis <ianlewis@google.com>2019-04-12 14:55:11 -0700
commit14f1de4a45daa75ef016fabb56d86cbd9b902504 (patch)
treee7cbc51cdee452059865889ee7238caaa9522f41
parentb7a2c922c90242a8d303a9b6e7aca406a06364b5 (diff)
Also push the shim v2 binary to the GCS bucket. (#23)
Signed-off-by: Lantao Liu <lantaol@google.com>
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0404fc0ee..f7b4d02df 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,9 @@ SOURCES=$(shell find cmd/ pkg/ vendor/ -name '*.go')
DEPLOY_PATH=cri-containerd-staging/gvisor-containerd-shim
VERSION=$(shell git rev-parse HEAD)
-all: bin/gvisor-containerd-shim bin/containerd-shim-runsc-v1
+all: binaries
+
+binaries: bin/gvisor-containerd-shim bin/containerd-shim-runsc-v1
bin/gvisor-containerd-shim: $(SOURCES)
CGO_ENABLED=0 go build ${GO_BUILD_FLAGS} -o bin/gvisor-containerd-shim ${SHIM_GO_LDFLAGS} ${GO_TAGS} ./cmd/gvisor-containerd-shim
@@ -27,6 +29,7 @@ uninstall:
clean:
rm -rf bin/*
-push: bin/gvisor-containerd-shim
+push: binaries
gsutil cp ./bin/gvisor-containerd-shim gs://$(DEPLOY_PATH)/gvisor-containerd-shim-$(VERSION)
- echo "gvisor-containerd-shim-$(VERSION)" | gsutil cp - "gs://$(DEPLOY_PATH)/latest"
+ gsutil cp ./bin/containerd-shim-runsc-v1 gs://$(DEPLOY_PATH)/containerd-shim-runsc-v1-$(VERSION)
+ echo "$(VERSION)" | gsutil cp - "gs://$(DEPLOY_PATH)/latest"