Skip to content

Commit 5cec8ed

Browse files
committed
added commands specific to bucket to tag using the build numbers
1 parent 3e151ba commit 5cec8ed

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

git-bit-autotag

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash -e
2+
3+
TARGET_PREFIX=${1:-release}
4+
TARGET_BASE=$TARGET_PREFIX-`date +%Y%m%d`
5+
TARGET_BRANCH=$TARGET_BASE-$BITBUCKET_BUILD_NUMBER
6+
git tag $TARGET_BRANCH
7+
git push origin $TARGET_BRANCH
8+
echo "tagging complete under tag $TARGET_BRANCH"

0 commit comments

Comments
 (0)