Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
lou-lan committed May 29, 2023
1 parent 40739d3 commit 1e5fb2a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.1.0
v0.2.0-rc0
4 changes: 2 additions & 2 deletions charts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ home: "https://spidernet-io.github.io/agent"
# application or library
type: application
# no need to modify this version , CI will auto update it with /VERSION
version: "0.1.0"
version: "0.2.0-rc0"
# This field is informational, and has no impact on chart version calculations .
# Leaving it unquoted can lead to parsing issues in some cases
# no need to modify this version , CI will auto update it with /VERSION
appVersion: "0.1.0"
appVersion: "0.2.0-rc0"
kubeVersion: ">= 1.16.0-0"
description: egressgateway
sources:
Expand Down
8 changes: 5 additions & 3 deletions tools/scripts/changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
# GH_TOKEN=${{ github.token }} LABEL_FEATURE="release/feature-new" LABEL_BUG="release/bug" PROJECT_REPO="spidernet-io/spiderpool" changelog.sh ./ v0.3.6
# GH_TOKEN=${{ github.token }} LABEL_FEATURE="release/feature-new" LABEL_BUG="release/bug" PROJECT_REPO="spidernet-io/spiderpool" changelog.sh ./ v0.3.6 v0.3.5

set -x
set -o errexit
set -o nounset
set -o pipefail
Expand Down Expand Up @@ -76,21 +75,24 @@ if [ -z "${START_TAG}" ] ; then
SET_VERSION
else
if (( RC == 0 )) ;then
# For example, if DEST_TAG is v0.2.0-rc0, the expected value is 0.1.0
SET_VERSION
# remove rc
DEST_TAG_WITHOUT_RC=` grep -oE "[vV]*[0-9]+\.[0-9]+\.[0-9]+" <<< "${DEST_TAG}" `
RC=""
else
# For example, if DEST_TAG is v0.2.0-rc2, the expected value is 0.2.0-rc1
START_X=$V_X
START_Y=$V_Y
START_Z=$V_Z
START_RC=$(( RC - 1 ))
fi
fi
#------ result
START_TAG=` sed -E "s?[0-9]+\.[0-9]+\.[0-9]+?${START_X}.${START_Y}.${START_Z}?" <<< "${DEST_TAG_WITHOUT_RC}" `
if [ -n "${RC}" ] ; then
START_TAG=` sed -E "s?([vV]*[0-9]+\.[0-9]+\.[0-9]+[^0-9]*[^0-9]*)[0-9]+?\1${START_RC}?" <<< "${START_TAG}" `
START_TAG="${START_X}.${START_Y}.${START_Z}-rc$START_RC"
else
START_TAG=` sed -E "s?[0-9]+\.[0-9]+\.[0-9]+?${START_X}.${START_Y}.${START_Z}?" <<< "${DEST_TAG_WITHOUT_RC}" `
fi
fi

Expand Down

0 comments on commit 1e5fb2a

Please sign in to comment.