-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1.01 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
env:
environment: dev
project: demo
region: ne
location: northeurope
steps:
- uses: actions/checkout@v2
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Azure CLI script
uses: azure/CLI@v1
with:
azcliversion: latest
inlineScript: |
az account show
az group create --name $environment-$project-infra-$region --location $location
az deployment group validate --resource-group $environment-$project-infra-$region --template-file source/infra/infra-log-analytics.json --parameters source/infra/infra-log-analytics.parameters.json
- uses: Azure/pipelines@v1
with:
azure-devops-project-url: 'https://dev.azure.com/CarloGarciaMier/AIS-Templates'
azure-pipeline-name: 'ACME.Infra'
azure-devops-token: '${{ secrets.AZURE_DEVOPS_TOKEN }}'