1

I have a development server and a production server. All developers push updates to the development server and the development server pushes updates to the production server.

Is there a Post-Receive hook for doing this? Assume that the development server and production server names are dev1 and prod1.

If possible, is there a post-receive hook that checks for the tag stable before pushing to prod1?

Edit: Workflow example

Gio Borje
  • 20,314
  • 7
  • 36
  • 50

2 Answers2

1

Look at my answer here:

Git Automatically push to Dev and Production from Central Repository depending on branch pushed

Community
  • 1
  • 1
manojlds
  • 290,304
  • 63
  • 469
  • 417
0

You can do whatever you like in the hook. Push --tags and specify the one you want.

Adam Dymitruk
  • 124,556
  • 26
  • 146
  • 141