Bitbucket管道标签触发器不起作用

时间:2020-01-14 18:59:42

标签: tags bitbucket bitbucket-pipelines git-tag

我一直在尝试使该管道以各种不同的格式触发,这似乎是正确的格式,但是我必须丢失一些东西,因为它仍然无法正常工作。

我只是yarn version --prerelease做git标签并与应用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"

1 个答案:

答案 0 :(得分:3)

我以为我做git push时,我的标签就和其他所有东西一起被推到了位桶中(在GH Actions中这样工作)。我不得不使用git push --tags明确地推送标签,然后标签开始工作。