git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* post-receive hooks based on push content
@ 2012-07-31 18:27 Jessica Lucci
  2012-07-31 19:07 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Jessica Lucci @ 2012-07-31 18:27 UTC (permalink / raw)
  To: git

Hey guys,

I'm trying to set up a post-receive hook that redirects code based on
the content of the actual push. Specifically, I'm trying to set up
automatic deployment of web apps with the option of sending the code
to a build farm first. For example, if you push your code to a git
repo, there should be a post-receive hook in there that looks to see
if /www is empty or something. If /www is empty, the app has yet to be
"built", so the hook should push the code to a build farm that can
compile the code into a WAR file (or whatever is appropriate). If /www
is already populated, we assume the code has already been compiled and
will then push the code directly onto the node.

So, first of all, is this even possible?
And if so, how would I go about writing this specific hook?

Thanks for your time!
Jessica

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-31 19:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-31 18:27 post-receive hooks based on push content Jessica Lucci
2012-07-31 19:07 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).