Skip to content

Instantly share code, notes, and snippets.

@salgo
Created October 2, 2014 09:22
Show Gist options
  • Save salgo/8d0631b5c41d09bb47b8 to your computer and use it in GitHub Desktop.
Save salgo/8d0631b5c41d09bb47b8 to your computer and use it in GitHub Desktop.
Little bit of bash to create a new tag for a Chef cookbook
#!/usr/bin/env bash
VERSION=`grep 'version' metadata.rb | grep -o "[0-9.]" | tr -d '\n'''`
git tag -a $VERSION -m $VERSION
git push origin --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment