Skip to content

Commit

Permalink
builder/builder.mk: Factor some common code from …/to-rc and …/to-ga …
Browse files Browse the repository at this point in the history
…in to …/.main

Signed-off-by: Luke Shumaker <[email protected]>
  • Loading branch information
LukeShu committed Jun 9, 2022
1 parent 483feb7 commit 664b81f
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions builder/builder.mk
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,10 @@ else

@printf ' pushing $(CYN)s3://scout-datawire-io/emissary-ingress/$(PROMOTE_CHANNEL)app.json$(END)...\n'
printf '{"application":"emissary","latest_version":"%s","notices":[]}' "$(patsubst v%,%,$(PROMOTE_TO_VERSION))" | aws s3 cp - s3://scout-datawire-io/emissary-ingress/$(PROMOTE_CHANNEL)app.json

{ $(MAKE) \
push-manifests \
publish-docs-yaml; }
endif
.PHONY: release/promote-oss/.main

Expand All @@ -514,13 +518,6 @@ release/promote-oss/to-rc: $(tools/devversion)
PROMOTE_TO_REPO='$(RELEASE_REGISTRY)/$(REPO)' \
PROMOTE_CHANNEL='test'; \
}
ifneq ($(IS_PRIVATE),)
echo "Not publishing charts or manifests because in a private repo" >&2
else
{ $(MAKE) \
push-manifests \
publish-docs-yaml; }
endif
.PHONY: release/promote-oss/to-rc

# To be run from a checkout at the tag you are promoting _from_.
Expand All @@ -538,13 +535,6 @@ release/promote-oss/to-ga: $(tools/devversion)
PROMOTE_TO_REPO='$(RELEASE_REGISTRY)/$(REPO)' \
PROMOTE_CHANNEL=''; \
}
ifneq ($(IS_PRIVATE),)
echo "Not publishing charts or manifests because in a private repo" >&2
else
{ $(MAKE) \
push-manifests \
publish-docs-yaml; }
endif
.PHONY: release/promote-oss/to-ga

# `make release/ga-check` is meant to be run by a human maintainer to
Expand Down

0 comments on commit 664b81f

Please sign in to comment.