我正在尝试让Travis部署在与模式/v.*/
匹配且环境变量设置为特定值$GITSECRET_DIST == deb
的标签上。我尝试了以下方法:
skip_cleanup: true
on:
branches:
except:
- legacy
- experimental
tag: true
condition: "$TRAVIS_TAG =~ ^v.*$ && $GITSECRET_DIST == rpm"
在https://travis-ci.org/simbo1905/git-secret/jobs/394177628处的结果是:
Skipping a deployment with the bintray provider because this branch is not permitted: v0.0.4
我也尝试过:
skip_cleanup: true
on:
branches:
only:
- master
- /v.*/
tag: true
condition: "$TRAVIS_TAG =~ ^v.*$ && $GITSECRET_DIST == rpm"
在https://travis-ci.org/simbo1905/git-secret/jobs/394169491给出的结果:
Skipping a deployment with the bintray provider because this branch is not permitted: v0.0.3
我也尝试了没有任何分支规范。
如何在具有自定义条件的正则表达式匹配的标记上构建它?