Switch to Woodpecker Environment Variables

https://woodpecker-ci.org/docs/usage/environment
This commit is contained in:
6543 2024-01-12 22:45:21 +01:00
parent 409e170776
commit 51ad96cfed
No known key found for this signature in database
GPG key ID: B8BE6D610E61C862

View file

@ -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