1

I am a newbie on git. How it possible to do auto deploy with branching on github. I have a github account and repository in it. I want to implement auto deploy like

  • When committing to branch "test" it will auto deploy to server 1
  • When committing to branch "production" it will auto deploy to server 2.

When I checking github webhook it will trigger only when committing to master branch only.

  • Can I add a webhook for each branch
  • How can I implement this.

I am using ec2 instance as web server.

Tim
  • 31,888
  • 7
  • 52
  • 78
adminz
  • 397
  • 2
  • 6
  • 20

0 Answers0