Skip to content

Commit

Permalink
Make release process work with Linux (#150)
Browse files Browse the repository at this point in the history
* Make release process work with Linux

---------

Signed-off-by: Gao Hongtao <hanahmily@gmail.com>
  • Loading branch information
hanahmily committed May 22, 2024
1 parent 8b7d835 commit 739dbe5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Release Notes.
- Bump up swck to v0.9.0.
- Bump up BanyanDB Helm version to 0.2.0.
- Bump up OAP and UI to 10.0.0.
- Make release process work with Linux.

4.5.0
------------------
Expand Down
14 changes: 9 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@

SHELL = /bin/bash -eo pipefail

TMPDIR ?= /tmp

CHART_DIR = chart/skywalking
VERSION = $(shell cat ${CHART_DIR}/Chart.yaml | grep -p '^version: ' | awk '{print $$2}')
CHART_NAME = $(shell cat ${CHART_DIR}/Chart.yaml | grep -p '^name: ' | awk '{print $$2}')
VERSION = $(shell cat ${CHART_DIR}/Chart.yaml | grep '^version: ' | awk '{print $$2}')
CHART_NAME = $(shell cat ${CHART_DIR}/Chart.yaml | grep '^name: ' | awk '{print $$2}')

RELEASE_SRC = ${CHART_NAME}-${VERSION}-src

Expand All @@ -32,6 +34,7 @@ package: prepare
rm -rf ${CHART_DIR}/LICENSE

clean:
rm -f $(TMPDIR)/$(RELEASE_SRC).tgz \
rm -rf bin/ \
rm -rf ${CHART_DIR}/NOTICE \
rm -rf ${CHART_DIR}/LICENSE \
Expand All @@ -44,15 +47,16 @@ clean:
rm -rf ${RELEASE_SRC}.tgz.asc \
rm -rf ${RELEASE_SRC}.tgz.sha512

release-src:
tar -zcvf $(RELEASE_SRC).tgz \
release-src: clean
tar -zcvf $(TMPDIR)/$(RELEASE_SRC).tgz \
--exclude bin \
--exclude .git \
--exclude .idea \
--exclude .gitignore \
--exclude .DS_Store \
--exclude .github \
.
. && \
mv $(TMPDIR)/$(RELEASE_SRC).tgz .

release: release-src package
gpg --batch --yes --armor --detach-sig $(RELEASE_SRC).tgz
Expand Down
2 changes: 1 addition & 1 deletion chart/skywalking/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
apiVersion: v2
name: skywalking-helm
home: https://skywalking.apache.org
version: 4.5.0
version: 4.6.0
description: Helm Chart for Apache SkyWalking
icon: https://raw.githubusercontent.com/apache/skywalking-kubernetes/master/logo/sw-logo-for-chart.jpg
sources:
Expand Down

0 comments on commit 739dbe5

Please sign in to comment.