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 @@ -212,12 +212,11 @@ spec:
212
212
git checkout ${BRANCH}
213
213
git branch --set-upstream-to=origin/${BRANCH} ${BRANCH}
214
214
215
- echo "IMAGE_NAME=$(basename -s .git `git config --get remote.origin.url` | tr '[:upper:]' '[:lower:]' | sed 's/_/-/g')" > ./env-config
216
-
217
215
if [[ "${BRANCH}" == "master" ]] && [[ $(git describe --tag `git rev-parse HEAD`) =~ (^[0-9]+.[0-9]+.[0-9]+$) ]] || \
218
216
[[ $(git describe --tag `git rev-parse HEAD`) =~ (^[0-9]+.[0-9]+.[0-9]+-.*[.][0-9]+$) ]]
219
217
then
220
218
echo "Latest commit is already tagged"
219
+ echo "IMAGE_NAME=$(basename -s .git `git config --get remote.origin.url` | tr '[:upper:]' '[:lower:]' | sed 's/_/-/g')" > ./env-config
221
220
echo "IMAGE_VERSION=$(git describe --abbrev=0 --tags)" >> ./env-config
222
221
exit 0
223
222
fi
@@ -242,6 +241,7 @@ spec:
242
241
--verbose \
243
242
-VV
244
243
244
+ echo "IMAGE_NAME=$(basename -s .git `git config --get remote.origin.url` | tr '[:upper:]' '[:lower:]' | sed 's/_/-/g')" > ./env-config
245
245
echo "IMAGE_VERSION=$(git describe --abbrev=0 --tags)" >> ./env-config
246
246
247
247
cat ./env-config
You can’t perform that action at this time.
0 commit comments