• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

  • 0
Sign in to follow this  

Automated Publishing of ASP.NET Web API when publishing to Git

Question

winlonghorn    103

At work, I am helping to orchestrate moving our small team to Source Control (especially on our Web Services). Does anybody know of a good way to setup an API to auto publish when changes are pushed to a remote repository in Git? As it is, we are looking at a minimum of 4 - 5 steps every time we need to make changes at the same time that another one of us is making changes. We want to simplify this process as much as possible. I have used Git in the past, but I am still fairly inexperienced with it. 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 1
adrynalyne    11,403
1 hour ago, winlonghorn said:

At work, I am helping to orchestrate moving our small team to Source Control (especially on our Web Services). Does anybody know of a good way to setup an API to auto publish when changes are pushed to a remote repository in Git? As it is, we are looking at a minimum of 4 - 5 steps every time we need to make changes at the same time that another one of us is making changes. We want to simplify this process as much as possible. I have used Git in the past, but I am still fairly inexperienced with it. 

Azure Dev Ops has continuous integration. So does TFS. You could also look at something like Jenkins. 

  • Like 1

Share this post


Link to post
Share on other sites
  • 0
winlonghorn    103
1 minute ago, adrynalyne said:

Azure Dev Ops has continuous integration. So does TFS. You could also look at something like Jenkins. 

Ok, thank you! I will take a look at that and see if it will fit our needs.

Share this post


Link to post
Share on other sites
  • 0
+Kyle    98

There are a number of ways you can do this. 

Check out Hashicorp Terraform for managing deployments or you can have fun and deploy AWX (OpenSource version of Ansible Tower) which can watch Source Control. 

 

If you are using Github, there are number of CI/CD integrations you can use: 

https://github.com/marketplace/category/continuous-integration

 

If you are using Gitlab you can use Gitlab Runners which are my favorite ❤️

https://docs.gitlab.com/runner/

 

Most of these will require you to code your steps (in like yaml lol), but it's really easy to code after reviewing the documentation. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.