Skip to content

Instantly share code, notes, and snippets.

@gregz67
Created May 11, 2015 22:45
Show Gist options
  • Select an option

  • Save gregz67/018d534fa1bedb1f8f94 to your computer and use it in GitHub Desktop.

Select an option

Save gregz67/018d534fa1bedb1f8f94 to your computer and use it in GitHub Desktop.
Simple cf deploy script
#!/bin/bash
set -e
cf push customer_portal
SHA=`git log --pretty=format:'%h' -n 1`
NOW=`date +"%Y-%m-%d-%H-%M"`
TAGNAME=`echo $NOW-Review-$SHA`
git tag -a $TAGNAME -m "$NOW"
git push origin --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment