marc-mueller / GHActions-CICD-Demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub Actions Demo

Setup

Perform the following action to setup resource groups and secrets fo the GitHub Actions Workflows

  • Create a resource group

    az group create -n demo-gh-actions -l westeurope
    
  • Create a service principal

    az ad sp create-for-rbac --name gh-actions-demo --role contributor --scopes /subscriptions/{subscription-id}/resourceGroups/demo-gh-actions --sdk-auth
    
  • Create secrets in GitHub repository

    • AZURE_CREDENTIALS --> paste the entire json from the command above
    • AZURE_RG --> resource group name
    • AZURE_SUBSCRIPTION --> subscription id

About

License:MIT License


Languages

Language:HTML 52.8%Language:C# 28.5%Language:Bicep 8.2%Language:CSS 5.1%Language:Dockerfile 4.0%Language:JavaScript 1.4%