Makefile: add release-victoria-metrics-arm64 build rule

This commit is contained in:
Aliaksandr Valialkin 2021-01-13 18:13:18 +02:00
parent 689d769b4d
commit cc379f95c2

View file

@ -64,9 +64,23 @@ release: \
release-victoria-metrics \ release-victoria-metrics \
release-vmutils release-vmutils
release-victoria-metrics: victoria-metrics-prod release-victoria-metrics: \
cd bin && tar czf victoria-metrics-$(PKG_TAG).tar.gz victoria-metrics-prod && \ release-victoria-metrics-amd64 \
sha256sum victoria-metrics-$(PKG_TAG).tar.gz > victoria-metrics-$(PKG_TAG)_checksums.txt release-victoria-metrics-arm64
release-victoria-metrics-amd64:
GOARCH=amd64 $(MAKE) release-victoria-metrics-generic
release-victoria-metrics-arm64:
GOARCH=arm64 $(MAKE) release-victoria-metrics-generic
release-victoria-metrics-generic: victoria-metrics-$(GOARCH)-prod
cd bin && \
tar --transform="flags=r;s|-$(GOARCH)||" -czf victoria-metrics-$(GOARCH)-$(PKG_TAG).tar.gz \
victoria-metrics-$(GOARCH)-prod \
&& sha256sum victoria-metrics-$(GOARCH)-$(PKG_TAG).tar.gz \
victoria-metrics-$(GOARCH)-prod \
| sed s/-$(GOARCH)// > victoria-metrics-$(GOARCH)-$(PKG_TAG)_checksums.txt
release-vmutils: \ release-vmutils: \
release-vmutils-amd64 \ release-vmutils-amd64 \