Only publish "latest" tag on v2 plugin if explicitly told to

For V2 plugin, "latest" means "latest stable release", to make
instructions simple for end-users.  So we don't want to overwrite
"latest" with a random build by accident.
This commit is contained in:
Bryan Boreham committed 2017-04-20 10:43:16 +00:00
1 parent de4ec23809
commit c59c86c660
1 file changed
+2 -1
+2 -1
View File
@@ -311,7 +311,8 @@ tools/.git $(MANIFEST_TOOL_DIR)/.git:
# Push plugin
plugin_publish: $(PLUGIN_UPTODATE)
$(SUDO) DOCKER_HOST=$(DOCKER_HOST) docker plugin push $(PLUGIN_IMAGE):$(WEAVE_VERSION)
ifneq ($(UPDATE_LATEST),false)
# "latest" means "stable release" here, so only push that if explicitly told to
ifeq ($(UPDATE_LATEST),true)
$(SUDO) DOCKER_HOST=$(DOCKER_HOST) docker plugin push $(PLUGIN_IMAGE):latest
endif