ad440-cloud-project / API

Azure Functions API Repo
0 stars 0 forks source link

TravisCI Pipeline For API Repo #5

Open JLaveta opened 5 years ago

JLaveta commented 5 years ago

Currently, TravisCI is only set to handle deployments from the UX-UI repository. We need to implement the TravisCI pipeline for the API repo as well.

Estimated time: 4 hours

JLaveta commented 5 years ago

Reading through both official documentation and documentation written by peers last quarter to figure this out.

After an initial attempt to get the pipeline up, I've run into an issue. Because I am already deploying the web app to Azure Web Apps, I am unable to deploy the API to the same space. I see two different paths to take here:

  1. Change the web app CI such that it deploys to the storage account.
  2. Find a way to deploy multiple repos to the web app service.

Working on researching both options.

Time spent so far: 3 hours

JLaveta commented 5 years ago

Spent another hour doing some research into solutions. Discovered that I could just setup Azure Functions similarly to the way I setup the web app and deploy directly to it:

https://docs.microsoft.com/en-us/azure/azure-functions/functions-continuous-deployment

Continuous integration pipeline is now setup and working for the API repository.

I'd like to take some time to create separate deployments for master/development branches both for the API and the UX/UI. Separate issues will be opened for this task.

Total time: 4 hours @toddysm