Switch to Woodpecker Environment Variables (#9)
https://woodpecker-ci.org/docs/usage/environment
This commit is contained in:
parent
409e170776
commit
f1e508a543
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ fi
|
||||||
# support format Major.Minor.Release or start with `v`
|
# support format Major.Minor.Release or start with `v`
|
||||||
# docker tags: Major, Major.Minor, Major.Minor.Release and latest
|
# docker tags: Major, Major.Minor, Major.Minor.Release and latest
|
||||||
if [[ "${PLUGIN_AUTO_TAG:-}" == "true" ]]; then
|
if [[ "${PLUGIN_AUTO_TAG:-}" == "true" ]]; then
|
||||||
TAG=$(echo "${DRONE_TAG:-}" |sed 's/^v//g')
|
TAG=$(echo "${CI_COMMIT_TAG:-}" |sed 's/^v//g')
|
||||||
part=$(echo "${TAG}" |tr '.' '\n' |wc -l)
|
part=$(echo "${TAG}" |tr '.' '\n' |wc -l)
|
||||||
# expect number
|
# expect number
|
||||||
echo "${TAG}" |grep -E "[a-z-]" &>/dev/null && isNum=1 || isNum=0
|
echo "${TAG}" |grep -E "[a-z-]" &>/dev/null && isNum=1 || isNum=0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue