Skip to content

Instantly share code, notes, and snippets.

@k2wanko
Created March 21, 2016 02:23
Show Gist options
  • Save k2wanko/836f14b0f6a1c576ebf4 to your computer and use it in GitHub Desktop.
Save k2wanko/836f14b0f6a1c576ebf4 to your computer and use it in GitHub Desktop.
gae_deploy.sh
#!/bin/sh
application=${APPLICATION:=$GAE_APPID}
branch=${BRANCH:=$(git rev-parse --abbrev-ref HEAD)}
token=$(gcloud auth print-access-token 2> /dev/null)
appcfg.py update --oauth2_access_token $token --application $application --version $branch .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment