Skip to content

Instantly share code, notes, and snippets.

@kgsnipes
Created December 13, 2022 14:00
Show Gist options
  • Save kgsnipes/a2d7b52886c3e704de32c8d45c0ce607 to your computer and use it in GitHub Desktop.
Save kgsnipes/a2d7b52886c3e704de32c8d45c0ce607 to your computer and use it in GitHub Desktop.
creating tag bitbucket
pipelines:
default:
- step:
script:
- echo "Made a change in build ${BITBUCKET_BUILD_NUMBER}" >> changes.txt
- git add changes.txt
- git commit -m "Updating changes.txt with latest build number."
- git tag -am "Tagging for release ${BITBUCKET_BUILD_NUMBER}" release-${BITBUCKET_BUILD_NUMBER}
- git push origin release-${BITBUCKET_BUILD_NUMBER}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment