Search code examples
gitgithubdeploying

Pulling down a specific tag of a git repository


I am using a system that, during high load, automatically fires up a new server, downloads the application code from Github, and deploys an HTTP server. However, I don't want to pull the latest commit from the master branch of the repo, but rather the latest tagged commit. Is this possible? If so, how?

Thanks!


Solution

  • AFAIK, no; but how about having a 'deploy' branch which always contains the code you want to deploy? Work on the master as usual, but whenever the code is in a stable state push to 'deploy'.