File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -214,8 +214,8 @@ spec:
214
214
215
215
echo "IMAGE_NAME=$(basename -s .git `git config --get remote.origin.url` | tr '[:upper:]' '[:lower:]' | sed 's/_/-/g')" > ./env-config
216
216
217
- if [[ "${BRANCH}" == "master" ]] && [[ $(git describe --tag `git rev-parse HEAD`) =~ " (^[0-9]+.[0-9]+.[0-9]+$)" ]] || \
218
- [[ $(git describe --tag `git rev-parse HEAD`) =~ " (^[0-9]+.[0-9]+.[0-9]+-.*[.][0-9]+$)" ]]
217
+ if [[ "${BRANCH}" == "master" ]] && [[ $(git describe --tag `git rev-parse HEAD`) =~ (^[0-9]+.[0-9]+.[0-9]+$) ]] || \
218
+ [[ $(git describe --tag `git rev-parse HEAD`) =~ (^[0-9]+.[0-9]+.[0-9]+-.*[.][0-9]+$) ]]
219
219
then
220
220
echo "Latest commit is already tagged"
221
221
echo "IMAGE_VERSION=$(git describe --abbrev=0 --tags)" >> ./env-config
You can’t perform that action at this time.
0 commit comments