Shahed C - MSFT
Shahed C - MSFT

Reputation: 2881

Can you deploy your Azure Web App via GitHub if you're not the repo owner?

Let's say you have a web application that you've pushed to GitHub. You can deploy it as an Azure Web App (formerly Azure Web Site) by entering your GitHub credentials into your Deployment settings on the Azure portal.

But how about GitHub repositories that you contribute to, but don't have ownership of?

Upvotes: 1

Views: 1288

Answers (3)

Jonathan
Jonathan

Reputation: 1755

I would suggest forking that repo and then publishing from your fork.

Upvotes: 0

cory-fowler
cory-fowler

Reputation: 4088

I would suggest creating a Github Organization for the Hackathon group and adding each GitHub user to the Organization. That way everyone that has access to that organization is able to access the code and each of them can have their own deployment of the site.

Here is a video on the new GitHub workflow in the Preview Portal

Upvotes: 2

Shahed C - MSFT
Shahed C - MSFT

Reputation: 2881

As a mentor at hackathon events, I've had students come up to me and ask me the above question, because another member of their team owns the repository. When they linked their GitHub account to their Azure account, they could only see their own GitHub projects.

The solution is to have the owner of the GitHub repo use their Azure account to enter the deployment credentials to set up continuous deployment.

If you contribute to that GitHub repo, all future pushes will automatically deploy the latest code to the Azure Web App on the live website URL.

Upvotes: 2

Related Questions