* added document for GH actions demo template

* Update GitHubActionsDemo.md

* Update GitHubActionsDemo.md

Co-authored-by: Akshay H <aksh-h@users.noreply.github.com>
This commit is contained in:
Akshay H 2021-05-31 12:28:47 +05:30 коммит произвёл GitHub
Родитель 7c245ace0b
Коммит 5bec6107b6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 34 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,34 @@
# GitHub Actions Demo
In this lab, you will learn about how to configure GitHub Action, Environment Variables and Secrets. This helps you to configure your staging and production environemnt using Azure Resource Manager Template and deploye the application.
# Prerequisites
1. GitHub account
1. Azure DevOps Organization
1. Azure Subscription to deploy resources
# Exercise
1. Create a project in your Azure DevOps Organization using [Azuer DevOps Demo Generator](http://azuredevopsdemogenerator-core.azurewebsites.net/?name=actiondemo)
2. Authenticate GitHub to import the repository into your GitHub user account.
3. Navigate to your GitHub Account, click on the Actions menu, you will see a GitHub action pre-configured
![actions](Images/Action.png)
4. Navigate to Build and Deploy YAML file, scroll down to see the environment variables ```RESOURCE_GROUP_NAME``` and ```RESOURCE_GROUP_LOCATION```. If you wan to change resource group name and resource group location, you can update the values here.
![variables](Images/EnvVariables.png)
5. Navigate to Settings and to the Secrets, you should see the following secrets configured under Repository Secrets section
![secrets](Images/Secrets.png)
6. Generate Azure Credentials using RBAC commands. Please refer the document [here](https://github.com/marketplace/actions/azure-login#configure-deployment-credentials)
7. ```AZURE_SQL_SERVER_NAME``` and ```WEBSITE_NAME``` will have preconfigured values, update the Azure Credentials in ```AZURE_CREDENTIALS``` secret
8. Run the action by clicking on Run workflow button.
![RunAction](Images/RunAction.png)

Двоичные данные
docs/GitHubActionsDemo/Images/Action.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 16 KiB

Двоичные данные
docs/GitHubActionsDemo/Images/EnvVariables.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 10 KiB

Двоичные данные
docs/GitHubActionsDemo/Images/RunAction.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 25 KiB

Двоичные данные
docs/GitHubActionsDemo/Images/Secrets.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 7.8 KiB