mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
Makefile: add TAG=v... make publish-release
rule for building and publishing a release for the given TAG
This commit is contained in:
parent
5edf695bc9
commit
b07010839c
2 changed files with 12 additions and 4 deletions
6
Makefile
6
Makefile
|
@ -88,6 +88,12 @@ release-snap:
|
||||||
snapcraft
|
snapcraft
|
||||||
snapcraft upload "victoriametrics_$(PKG_TAG)_multi.snap" --release beta,edge,candidate
|
snapcraft upload "victoriametrics_$(PKG_TAG)_multi.snap" --release beta,edge,candidate
|
||||||
|
|
||||||
|
publish-release:
|
||||||
|
git checkout $(TAG) && $(MAKE) release publish && \
|
||||||
|
git checkout $(TAG)-cluster && $(MAKE) release publish && \
|
||||||
|
git checkout $(TAG)-enterprise && $(MAKE) release publish && \
|
||||||
|
git checkout $(TAG)-enterprise-cluster && $(MAKE) release publish
|
||||||
|
|
||||||
release: \
|
release: \
|
||||||
release-victoria-metrics \
|
release-victoria-metrics \
|
||||||
release-vmutils
|
release-vmutils
|
||||||
|
|
|
@ -7,10 +7,12 @@ sort: 17
|
||||||
## Release version and Docker images
|
## Release version and Docker images
|
||||||
|
|
||||||
0. Document all the changes for new release in [CHANGELOG.md](https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/docs/CHANGELOG.md).
|
0. Document all the changes for new release in [CHANGELOG.md](https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/docs/CHANGELOG.md).
|
||||||
1. Create release tag with `git tag v1.xx.y` in `master` branch and `git tag v1.xx.y-cluster` in `cluster` branch.
|
1. Create the following release tags:
|
||||||
2. Run `make release` for creating `*.tar.gz` release archive with the corresponding `_checksums.txt` inside `bin` directory.
|
* `git tag v1.xx.y` in `master` branch
|
||||||
3. Run `make publish` for creating and publishing Docker images.
|
* `git tag v1.xx.y-cluster` in `cluster` branch
|
||||||
4. Repeat steps 3-4 for `cluster` branch.
|
* `git tag v1.xx.y-enterprise` in `enterprise` branch
|
||||||
|
* `git tag v1.xx.y-enterprise-cluster` in `enterprise-cluster` branch
|
||||||
|
2. Run `TAG=v1.xx.y make publish-release`. It will create `*.tar.gz` release archives with the corresponding `_checksums.txt` files inside `bin` directory and publish Docker images for the given `TAG`, `TAG-cluster`, `TAG-enterprise` and `TAG-enterprise-cluster`.
|
||||||
5. Push release tag to https://github.com/VictoriaMetrics/VictoriaMetrics : `git push origin v1.xx.y`.
|
5. Push release tag to https://github.com/VictoriaMetrics/VictoriaMetrics : `git push origin v1.xx.y`.
|
||||||
6. Go to https://github.com/VictoriaMetrics/VictoriaMetrics/releases , create new release from the pushed tag on step 5 and upload `*.tar.gz` archive with the corresponding `_checksums.txt` from step 2.
|
6. Go to https://github.com/VictoriaMetrics/VictoriaMetrics/releases , create new release from the pushed tag on step 5 and upload `*.tar.gz` archive with the corresponding `_checksums.txt` from step 2.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue