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:
1 parent
de4ec23809
commit
c59c86c660
1 file changed
+2
-1
@@ -311,7 +311,8 @@ tools/.git $(MANIFEST_TOOL_DIR)/.git:
|
|||||||
# Push plugin
|
# Push plugin
|
||||||
plugin_publish: $(PLUGIN_UPTODATE)
|
plugin_publish: $(PLUGIN_UPTODATE)
|
||||||
$(SUDO) DOCKER_HOST=$(DOCKER_HOST) docker plugin push $(PLUGIN_IMAGE):$(WEAVE_VERSION)
|
$(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
|
$(SUDO) DOCKER_HOST=$(DOCKER_HOST) docker plugin push $(PLUGIN_IMAGE):latest
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user