Switch to Woodpecker Environment Variables (#9)

https://woodpecker-ci.org/docs/usage/environment
This commit is contained in:
6543 2024-01-12 22:46:38 +01:00 committed by GitHub
parent 409e170776
commit f1e508a543
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ fi
# support format Major.Minor.Release or start with `v`
# docker tags: Major, Major.Minor, Major.Minor.Release and latest
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)
# expect number
echo "${TAG}" |grep -E "[a-z-]" &>/dev/null && isNum=1 || isNum=0