[英]How to git tag release with Bitbucket Pipelines (bitbucket-pipelines.yml)
如何使用 bitbucket-pipelines.yml 文件在管道中标记 git commit?
我的脚本如下。 要使用它,您需要
- step: &tag
name: Tag version
image: atlassian/default-image:2
script:
- git remote set-url origin ${BITBUCKET_GIT_SSH_ORIGIN}
- dt=$(date '+%Y-%m-%d_%H%M');
- git tag $dt ${BITBUCKET_COMMIT}
- git push origin --tags
在这里你有管道-git 授权的完整文档: https : //confluence.atlassian.com/bitbucket/push-back-to-your-repository-962352710.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.