[英]Bitbucket Pipeline Tags Trigger Not Working
I've been trying to get this pipeline to trigger with all sorts of different formats and this appears to be the correct one, but I must be missing something because it's still not working.我一直在尝试让这个管道以各种不同的格式触发,这似乎是正确的,但我一定遗漏了一些东西,因为它仍然无法正常工作。
I'm just doing yarn version --prerelease
to git tag and keep parity with the apps package.json
version.我只是在做
yarn version --prerelease
到 git tag 并与应用程序package.json
版本保持一致。
# This is a sample build configuration for JavaScript.
# Check our guides at https://confluence.atlassian.com/x/14UWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: node:10.15.3
pipelines:
tags:
'v*-*':
- step:
script:
- echo "I FEEL LIKE I'M TAKING CRAZY PILLS"
I had assumed that my tags were being pushed to bitbucket with everything else when I did git push
(it works that way in GH Actions).当我执行
git push
时,我假设我的标签与其他所有内容一起被推送到 bitbucket(它在 GH Actions 中是这样工作的)。 I had to explicitly push tags with git push --tags
and then it started working.我必须使用
git push --tags
显式推送标签,然后它开始工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.