From 9ad85fdfcb1c23b6454537c7a92f78a475362068 Mon Sep 17 00:00:00 2001 From: harshitha1112 <63640125+harshitha1112@users.noreply.github.com> Date: Wed, 22 Apr 2020 10:53:57 +0530 Subject: [PATCH 1/6] Login&sample workflow --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f4251c0f2..cfa2c277c 100644 --- a/README.md +++ b/README.md @@ -26,11 +26,14 @@ The definition of this Github Action is in [action.yml](https://github.com/Azure * To build and deploy a containerized app, use [docker-login](https://github.com/Azure/docker-login) to log in to a private container registry such as [Azure Container registry](https://azure.microsoft.com/en-us/services/container-registry/). Once login is done, the next set of Actions in the workflow can perform tasks such as building, tagging and pushing containers. +Note: For first time users, workflow samples with sample app code and deployment procedure for various technologies are given at (https://github.com/Azure/actions-workflow-samples/tree/master/AppService). + +For Eg: If You want to deploy a Node.js app, You can follow the link https://github.com/Azure-Samples/node_express_app in the sample workflow templates. ## Create Azure Web App and deploy using GitHub Actions -1. Follow the tutorial [Azure Web Apps Quickstart](https://docs.microsoft.com/en-us/azure/app-service/overview#next-steps) +1. Create a web app on Azure app service.It can be done using Azure portal or cloudshell in the portal. To use cloudshell, follow the tutorial [Azure Web Apps Quickstart](https://docs.microsoft.com/en-us/azure/app-service/overview#next-steps). 2. Pick a template from the following table depends on your Azure web app **runtime** and place the template to `.github/workflows/` in your project repository. -3. Change `app-name` to your Web app name. +3. Change `app-name` to your Web app name configured in the Azure 4. Commit and push your project to GitHub repository, you should see a new GitHub Action initiated in **Actions** tab. | Runtime | Template | @@ -135,11 +138,15 @@ jobs: For any credentials like Azure Service Principal, Publish Profile etc add them as [secrets](https://help.github.com/en/articles/virtual-environments-for-github-actions#creating-and-using-secrets-encrypted-variables) in the GitHub repository and then use them in the workflow. -The above example uses user-level credentials i.e., Azure Service Principal for deployment. +The above example uses user-level credentials i.e., Azure Service Principal for deployment. + +Prerequisites: + * You should have installed Azure cli on your local machine to run the command or use the cloudshell in the Azure portal. To install Azure cli, follow [Install Azure Cli](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest). To use cloudshell, follow(). + Follow the steps to configure the secret: * Define a new secret under your repository settings, Add secret menu - * Paste the contents of the below [az cli](https://docs.microsoft.com/en-us/cli/azure/?view=azure-cli-latest) command as the value of secret variable, for example 'AZURE_CREDENTIALS' + * Run the command Azure cli command. ```bash az ad sp create-for-rbac --name "myApp" --role contributor \ @@ -159,6 +166,7 @@ Follow the steps to configure the secret: } ``` + * Paste the contents of the above [az cli](https://docs.microsoft.com/en-us/cli/azure/?view=azure-cli-latest) command as the value of secret variable, for example 'AZURE_CREDENTIALS' * You can further scope down the Azure Credentials to the Web App using scope attribute. For example, ``` az ad sp create-for-rbac --name "myApp" --role contributor \ From afd965123bf414bfce7dfcbcc2b0edb81c9b1fb0 Mon Sep 17 00:00:00 2001 From: harshitha1112 <63640125+harshitha1112@users.noreply.github.com> Date: Wed, 22 Apr 2020 11:05:42 +0530 Subject: [PATCH 2/6] Sampleworkflow --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index cfa2c277c..f294fc578 100644 --- a/README.md +++ b/README.md @@ -25,15 +25,16 @@ The definition of this Github Action is in [action.yml](https://github.com/Azure * [Setup Java](https://github.com/actions/setup-java) sets up Java app environment optionally downloading and caching a version of java by version and adding to PATH. Downloads from [Azul's Zulu distribution](http://static.azul.com/zulu/bin/). * To build and deploy a containerized app, use [docker-login](https://github.com/Azure/docker-login) to log in to a private container registry such as [Azure Container registry](https://azure.microsoft.com/en-us/services/container-registry/). Once login is done, the next set of Actions in the workflow can perform tasks such as building, tagging and pushing containers. - -Note: For first time users, workflow samples with sample app code and deployment procedure for various technologies are given at (https://github.com/Azure/actions-workflow-samples/tree/master/AppService). - -For Eg: If You want to deploy a Node.js app, You can follow the link https://github.com/Azure-Samples/node_express_app in the sample workflow templates. ## Create Azure Web App and deploy using GitHub Actions -1. Create a web app on Azure app service.It can be done using Azure portal or cloudshell in the portal. To use cloudshell, follow the tutorial [Azure Web Apps Quickstart](https://docs.microsoft.com/en-us/azure/app-service/overview#next-steps). + +## Note: +For first time users, workflow samples with sample app code and deployment procedure for various **runtime** environments are given at (https://github.com/Azure/actions-workflow-samples/tree/master/AppService). +For Eg: If You want to deploy a Java WAR based app, You can follow the link https://github.com/Azure-Samples/Java-application-petstore-ee7 in the sample workflow templates. + +1. Create a web app on Azure app service. Follow the tutorial [Azure Web Apps Quickstart](https://docs.microsoft.com/en-us/azure/app-service/overview#next-steps). 2. Pick a template from the following table depends on your Azure web app **runtime** and place the template to `.github/workflows/` in your project repository. -3. Change `app-name` to your Web app name configured in the Azure +3. Change `app-name` to your Web app name created in the first step. 4. Commit and push your project to GitHub repository, you should see a new GitHub Action initiated in **Actions** tab. | Runtime | Template | @@ -140,7 +141,7 @@ For any credentials like Azure Service Principal, Publish Profile etc add them a The above example uses user-level credentials i.e., Azure Service Principal for deployment. -Prerequisites: +## Prerequisites: * You should have installed Azure cli on your local machine to run the command or use the cloudshell in the Azure portal. To install Azure cli, follow [Install Azure Cli](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest). To use cloudshell, follow(). From 97d0b5bc3c62929714fa214b83cb4cee2a530746 Mon Sep 17 00:00:00 2001 From: harshitha1112 <63640125+harshitha1112@users.noreply.github.com> Date: Wed, 22 Apr 2020 11:20:21 +0530 Subject: [PATCH 3/6] Cloudshell quickstart --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f294fc578..6c834e032 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,7 @@ Once login is done, the next set of Actions in the workflow can perform tasks su ## Create Azure Web App and deploy using GitHub Actions -## Note: -For first time users, workflow samples with sample app code and deployment procedure for various **runtime** environments are given at (https://github.com/Azure/actions-workflow-samples/tree/master/AppService). +Note: Workflow samples with sample application code and deployment procedure for various **runtime** environments are given at (https://github.com/Azure/actions-workflow-samples/tree/master/AppService). For Eg: If You want to deploy a Java WAR based app, You can follow the link https://github.com/Azure-Samples/Java-application-petstore-ee7 in the sample workflow templates. 1. Create a web app on Azure app service. Follow the tutorial [Azure Web Apps Quickstart](https://docs.microsoft.com/en-us/azure/app-service/overview#next-steps). @@ -142,7 +141,7 @@ For any credentials like Azure Service Principal, Publish Profile etc add them a The above example uses user-level credentials i.e., Azure Service Principal for deployment. ## Prerequisites: - * You should have installed Azure cli on your local machine to run the command or use the cloudshell in the Azure portal. To install Azure cli, follow [Install Azure Cli](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest). To use cloudshell, follow(). + * You should have installed Azure cli on your local machine to run the command or use the cloudshell in the Azure portal. To install Azure cli, follow [Install Azure Cli](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest). To use cloudshell, follow(https://docs.microsoft.com/en-us/azure/cloud-shell/quickstart). Follow the steps to configure the secret: From 6044bc6af0c202f647c1861bc10b631e092a5c0b Mon Sep 17 00:00:00 2001 From: harshitha1112 <63640125+harshitha1112@users.noreply.github.com> Date: Wed, 22 Apr 2020 11:21:32 +0530 Subject: [PATCH 4/6] word correction --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6c834e032..0ec6faff0 100644 --- a/README.md +++ b/README.md @@ -146,7 +146,7 @@ The above example uses user-level credentials i.e., Azure Service Principal for Follow the steps to configure the secret: * Define a new secret under your repository settings, Add secret menu - * Run the command Azure cli command. + * Run the below Azure cli command. ```bash az ad sp create-for-rbac --name "myApp" --role contributor \ From 03516350568f9fb4944c3f1e468857c7a1ed6db4 Mon Sep 17 00:00:00 2001 From: harshitha1112 <63640125+harshitha1112@users.noreply.github.com> Date: Wed, 22 Apr 2020 11:28:42 +0530 Subject: [PATCH 5/6] alignment --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0ec6faff0..b6a799d38 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ For any credentials like Azure Service Principal, Publish Profile etc add them a The above example uses user-level credentials i.e., Azure Service Principal for deployment. ## Prerequisites: - * You should have installed Azure cli on your local machine to run the command or use the cloudshell in the Azure portal. To install Azure cli, follow [Install Azure Cli](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest). To use cloudshell, follow(https://docs.microsoft.com/en-us/azure/cloud-shell/quickstart). + * You should have installed Azure cli on your local machine to run the command or use the cloudshell in the Azure portal. To install Azure cli, follow [Install Azure Cli](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest). To use cloudshell, follow [CloudShell Quickstart](https://docs.microsoft.com/en-us/azure/cloud-shell/quickstart). Follow the steps to configure the secret: From 418953dc70b9790de829af8eaa5fdf03c791c060 Mon Sep 17 00:00:00 2001 From: harshitha1112 <63640125+harshitha1112@users.noreply.github.com> Date: Sun, 24 May 2020 12:33:48 +0530 Subject: [PATCH 6/6] "create webapp in Azure using app service" --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b6a799d38..929ab9813 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Once login is done, the next set of Actions in the workflow can perform tasks su Note: Workflow samples with sample application code and deployment procedure for various **runtime** environments are given at (https://github.com/Azure/actions-workflow-samples/tree/master/AppService). For Eg: If You want to deploy a Java WAR based app, You can follow the link https://github.com/Azure-Samples/Java-application-petstore-ee7 in the sample workflow templates. -1. Create a web app on Azure app service. Follow the tutorial [Azure Web Apps Quickstart](https://docs.microsoft.com/en-us/azure/app-service/overview#next-steps). +1. Create a web app in Azure using app service. Follow the tutorial [Azure Web Apps Quickstart](https://docs.microsoft.com/en-us/azure/app-service/overview#next-steps). 2. Pick a template from the following table depends on your Azure web app **runtime** and place the template to `.github/workflows/` in your project repository. 3. Change `app-name` to your Web app name created in the first step. 4. Commit and push your project to GitHub repository, you should see a new GitHub Action initiated in **Actions** tab.