...
1
2########################################################################
3# Manual commands
4# These are the commands that are currently run manually in the normal
5# release process
6########################################################################
7
8# `make release/start START_VERSION=X.Y.0` is meant to be run by the
9# human maintainer when work on a new X.Y.0 starts.
10release/start:
11 @[[ "$(START_VERSION)" =~ ^[0-9]+\.[0-9]+\.0$$ ]] || (printf '$(RED)ERROR: START_VERSION must be set to a GA "2.Y.0" value; it is set to "%s"$(END)\n' "$(START_VERSION)"; exit 1)
12 @$(OSS_HOME)/releng/00-release-start --next-version $(START_VERSION)
13.PHONY: release/start
14
15# `make release/ga/changelog-update CHANGELOG_VERSION=X.Y.Z` is meant
16# to be run by the human maintainer when preparing the final version
17# of the `rel/vX.Y.Z` branch.
18release/ga/changelog-update:
19 $(OSS_HOME)/releng/release-go-changelog-update --quiet $(CHANGELOG_VERSION)
20.PHONY: release/ga/changelog-update
21
22########################################################################
23# CI commands
24# These commands are run in CI in a normal release process
25########################################################################
26
27release/ga/create-gh-release:
28 @[[ "$(VERSION)" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$$ ]] || (printf '$(RED)ERROR: VERSION must be set to a GA "v2.Y.Z" value; it is set to "%s"$(END)\n' "$(VERSION)"; exit 1)
29 @$(OSS_HOME)/releng/release-create-github $(patsubst v%,%,$(VERSION))
30.PHONY: release/ga/create-gh-release
31
32release/chart-create-gh-release:
33 $(OSS_HOME)/releng/chart-create-gh-release
34.PHONY: release/chart-create-gh-release
35
36CHART_S3_BUCKET = $(or $(AWS_S3_BUCKET),datawire-static-files)
37CHART_S3_PREFIX = $(if $(findstring -,$(CHART_VERSION)),charts-dev,charts)
38release/push-chart: $(chart_tgz)
39ifneq ($(IS_PRIVATE),)
40 echo "Private repo, not pushing chart" >&2
41else
42 @if curl -k -L https://s3.amazonaws.com/$(CHART_S3_BUCKET)/$(CHART_S3_PREFIX)/index.yaml | grep -F emissary-ingress-$(patsubst v%,%,$(CHART_VERSION)).tgz; then \
43 printf 'Chart version %s is already in the index\n' '$(CHART_VERSION)' >&2; \
44 exit 1; \
45 fi
46 { aws s3api put-object \
47 --bucket $(CHART_S3_BUCKET) \
48 --key $(CHART_S3_PREFIX)/emissary-ingress-$(patsubst v%,%,$(CHART_VERSION)).tgz \
49 --body $<; }
50endif
51.PHONY: release/push-chart
52
53push-manifests: build-output/yaml-$(patsubst v%,%,$(VERSION))
54ifneq ($(IS_PRIVATE),)
55 @echo "Private repo, not pushing chart" >&2
56 @exit 1
57else
58 manifests/push_manifests.sh $<
59endif
60.PHONY: push-manifests
61
62publish-docs-yaml: build-output/docs-yaml-$(patsubst v%,%,$(VERSION))
63ifneq ($(IS_PRIVATE),)
64 @echo "Private repo, not pushing chart" >&2
65 @exit 1
66else
67 docs/publish_yaml_s3.sh $<
68endif
69.PHONY: publish-docs-yaml
View as plain text