added data hub deployment
This commit is contained in:
Родитель
037479892e
Коммит
4887165673
|
@ -0,0 +1,52 @@
|
||||||
|
name: Data Hub Deployment
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
paths:
|
||||||
|
- 'infra/KeyVault/**'
|
||||||
|
- 'infra/PrivateEndpoint/**'
|
||||||
|
- '.github/workflows/dataHubDeployment.yml'
|
||||||
|
|
||||||
|
env:
|
||||||
|
AZURE_RESOURCE_GROUP: datahub-mgmt
|
||||||
|
AZURE_LOCATION: northeurope
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deployment:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
|
steps:
|
||||||
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
|
- name: Check Out Repository
|
||||||
|
id: checkout_repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# Login to Azure
|
||||||
|
- name: Azure Login
|
||||||
|
id: azure_login
|
||||||
|
uses: azure/login@v1
|
||||||
|
with:
|
||||||
|
creds: ${{ secrets.AZURE_CREDENTIALS }}
|
||||||
|
|
||||||
|
# Create resource group
|
||||||
|
- name: Create resource group
|
||||||
|
uses: azure/CLI@v1
|
||||||
|
with:
|
||||||
|
azcliversion: latest
|
||||||
|
inlineScript: |
|
||||||
|
echo "Creating resource group ${{ env.AZURE_RESOURCE_GROUP }}"
|
||||||
|
az group create --location ${{ env.AZURE_LOCATION }} --name ${{ env.AZURE_RESOURCE_GROUP }}
|
||||||
|
|
||||||
|
# Deploy key vault
|
||||||
|
- name: Deploy key vault
|
||||||
|
uses: azure/CLI@v1
|
||||||
|
with:
|
||||||
|
azcliversion: latest
|
||||||
|
inlineScript: |
|
||||||
|
echo "Creating deployment in resource group"
|
||||||
|
az deployment group create \
|
||||||
|
--resource-group ${{ env.AZURE_RESOURCE_GROUP }} \
|
||||||
|
--template-file $GITHUB_WORKSPACE/infra/KeyVault/deploy.keyVault.json \
|
||||||
|
--parameters $GITHUB_WORKSPACE/infra/KeyVault/params.keyVault001.json
|
|
@ -3,7 +3,7 @@ name: Log Analytics Deployment
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
paths:
|
paths:
|
||||||
- 'infra/LogAnalytics/**'
|
- 'infra/LogAnalytics/**'
|
||||||
- '.github/workflows/logAnalyticsDeployment.yml'
|
- '.github/workflows/logAnalyticsDeployment.yml'
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ name: Private DNS Zone Deployment
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
paths:
|
paths:
|
||||||
- 'infra/PrivateDns/**'
|
- 'infra/PrivateDns/**'
|
||||||
- '.github/workflows/privateDnsDeployment.yml'
|
- '.github/workflows/privateDnsDeployment.yml'
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ name: Virtual Network Deployment
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
paths:
|
paths:
|
||||||
- 'infra/VirtualNetwork/**'
|
- 'infra/VirtualNetwork/**'
|
||||||
- '.github/workflows/vnetDeployment.yml'
|
- '.github/workflows/vnetDeployment.yml'
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче