Skip to content

Instantly share code, notes, and snippets.

@mdornseif
Created January 12, 2011 23:25
Show Gist options
  • Save mdornseif/777108 to your computer and use it in GitHub Desktop.
Save mdornseif/777108 to your computer and use it in GitHub Desktop.
tag deploys for appengine
deploy: dependencies check
# index must be clean (no modified files)
git diff-index --quiet --cached HEAD
# no uncomitted changes
git diff-files --quiet
# create a branch for the current version
git branch -f deploy_`grep -E '^version: ' app.yaml | cut -d ' ' -f 2`
# push current code to that branch
git push -f . deploy_`grep -E '^version: ' app.yaml | cut -d ' ' -f 2`
# install on AppEngine
appcfg.py update .
# upload tagged version to github
git push origin deploy_`grep -E '^version: ' app.yaml | cut -d ' ' -f 2`
# jetzt bitte zwitschern
open https://zwitschr.hudora.biz/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment