File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,11 @@ jobs:
144
144
- name : e2e
145
145
run : |
146
146
CONTAINER_TAG=$(git describe --tags --abbrev=8 --dirty)
147
- HELM_CHART_VERSION=`echo ${CONTAINER_TAG}|awk -F "-" '{print $1 }'`
147
+ HELM_CHART_VERSION=`echo ${CONTAINER_TAG}|awk -F "-" '{print $1}'`
148
+ CONDITION_COUNT=$(echo ${CONTAINER_TAG}|grep -o '-'|wc -l)
149
+ if (( ${CONDITION_COUNT} >= 3 ));then
150
+ HELM_CHART_VERSION=`echo ${CONTAINER_TAG}|awk -F "-" '{print $1"-"$2 }'`
151
+ fi
148
152
echo ${{ runner.name }}
149
153
echo ${{ runner.os }}
150
154
echo ${{ runner.arch }}
Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ if [ "${IMG_VER}" != "" ]; then
49
49
fi
50
50
51
51
# v0.1.1 --> 0.1.1 Match the helm chart version specification, remove the preceding prefix `v` character
52
- KUBEAN_CHART_VERSION=" $( echo " ${HELM_VER} " | sed ' s/^v//g' ) "
52
+ # KUBEAN_CHART_VERSION="$(echo "${HELM_VER}" |sed 's/^v//g' )"
53
+ KUBEAN_CHART_VERSION=${HELM_VER}
53
54
54
55
# ensure kube.conf without group-readable
55
56
chmod 600 ${KUBE_CONF}
You can’t perform that action at this time.
0 commit comments