Skip to content

Commit

Permalink
Update to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSehr committed Jan 8, 2024
2 parents 6c81ce3 + 36b627a commit 9678bed
Show file tree
Hide file tree
Showing 2,595 changed files with 275,949 additions and 172,478 deletions.
50 changes: 50 additions & 0 deletions .azuredevops/modulePipelines/ms.app.jobs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: 'App - Jobs'

parameters:
- name: staticValidation
displayName: Execute static validation
type: boolean
default: true
- name: deploymentValidation
displayName: Execute deployment validation
type: boolean
default: true
- name: removeDeployment
displayName: Remove deployed module
type: boolean
default: true
- name: prerelease
displayName: Publish prerelease module
type: boolean
default: false

pr: none

trigger:
batch: true
branches:
include:
- main
paths:
include:
- '/.azuredevops/modulePipelines/ms.app.jobs.yml'
- '/.azuredevops/pipelineTemplates/*.yml'
- '/modules/app/job/*'
- '/utilities/pipelines/*'
exclude:
- '/utilities/pipelines/deploymentRemoval/*'
- '/**/*.md'

variables:
- template: '../../settings.yml'
- group: 'PLATFORM_VARIABLES'
- name: modulePath
value: '/modules/app/job'

stages:
- template: /.azuredevops/pipelineTemplates/stages.module.yml
parameters:
staticValidation: '${{ parameters.staticValidation }}'
deploymentValidation: '${{ parameters.deploymentValidation }}'
removeDeployment: '${{ parameters.removeDeployment }}'
prerelease: '${{ parameters.prerelease }}'
50 changes: 50 additions & 0 deletions .azuredevops/modulePipelines/ms.databricks.accessconnectors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: 'Databricks - Access Connectors'

parameters:
- name: staticValidation
displayName: Execute static validation
type: boolean
default: true
- name: deploymentValidation
displayName: Execute deployment validation
type: boolean
default: true
- name: removeDeployment
displayName: Remove deployed module
type: boolean
default: true
- name: prerelease
displayName: Publish prerelease module
type: boolean
default: false

pr: none

trigger:
batch: true
branches:
include:
- main
paths:
include:
- '/.azuredevops/modulePipelines/ms.databricks.accessconnectors.yml'
- '/.azuredevops/pipelineTemplates/*.yml'
- '/modules/databricks/access-connector/*'
- '/utilities/pipelines/*'
exclude:
- '/utilities/pipelines/deploymentRemoval/*'
- '/**/*.md'

variables:
- template: '../../settings.yml'
- group: 'PLATFORM_VARIABLES'
- name: modulePath
value: '/modules/databricks/access-connector'

stages:
- template: /.azuredevops/pipelineTemplates/stages.module.yml
parameters:
staticValidation: '${{ parameters.staticValidation }}'
deploymentValidation: '${{ parameters.deploymentValidation }}'
removeDeployment: '${{ parameters.removeDeployment }}'
prerelease: '${{ parameters.prerelease }}'
1 change: 1 addition & 0 deletions .azuredevops/modulePipelines/ms.network.natgateways.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ trigger:
include:
- '/modules/network/nat-gateway/*'
- '/modules/network/public-ip-address/*'
- '/modules/network/public-ip-prefix/*'
- '/.azuredevops/modulePipelines/ms.network.natgateways.yml'
- '/.azuredevops/pipelineTemplates/*.yml'
- '/utilities/pipelines/*'
Expand Down
16 changes: 7 additions & 9 deletions .azuredevops/pipelineTemplates/jobs.getModuleTestFiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,16 @@ jobs:
targetType: inline
pwsh: true
script: |
# Load used functions
. (Join-Path '$(System.DefaultWorkingDirectory)' 'utilities' 'pipelines' 'sharedScripts' 'Get-ModuleTestFileList.ps1')
# Get the list of parameter file paths
$moduleFolderPath = Join-Path '$(System.DefaultWorkingDirectory)' '${{ parameters.modulePath }}'
$testFilePaths = (Get-ChildItem -Path $moduleFolderPath -Recurse -Filter 'main.test.bicep').FullName | Sort-Object
$functionInput = @{
ModulePath = Join-Path '$(System.DefaultWorkingDirectory)' '${{ parameters.modulePath }}'
$deploymentTestPaths = $testFilePaths | ForEach-Object {
$_.Replace($moduleFolderPath, '').Trim('\').Trim('/')
}
Write-Verbose "Invoke task with" -Verbose
Write-Verbose ($functionInput | ConvertTo-Json | Out-String) -Verbose
# Set agent up
$deploymentTestPaths = Get-ModuleTestFileList @functionInput -Verbose
Write-Verbose 'Found module test files' -Verbose
$deploymentTestPaths | ForEach-Object { Write-Verbose "- [$_]" -Verbose }
$testTable = @{}
foreach ($deploymentTestPath in $deploymentTestPaths) {
Expand Down
17 changes: 8 additions & 9 deletions .github/actions/templates/getModuleTestFiles/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,17 @@ runs:
run: |
# Grouping task logs
Write-Output '::group::Get parameter files'
# Load used functions
. (Join-Path $env:GITHUB_WORKSPACE 'utilities' 'pipelines' 'sharedScripts' 'Get-ModuleTestFileList.ps1')
$functionInput = @{
ModulePath = Join-Path $env:GITHUB_WORKSPACE '${{ inputs.modulePath }}'
}
# Get the list of parameter file paths
$moduleFolderPath = Join-Path $env:GITHUB_WORKSPACE '${{ inputs.modulePath }}'
$testFilePaths = (Get-ChildItem -Path $moduleFolderPath -Recurse -Filter 'main.test.bicep').FullName | Sort-Object
Write-Verbose "Invoke task with" -Verbose
Write-Verbose ($functionInput | ConvertTo-Json | Out-String) -Verbose
$testFilePaths = $testFilePaths | ForEach-Object {
$_.Replace($moduleFolderPath, '').Trim('\').Trim('/')
}
# Get the list of parameter file paths
$testFilePaths = Get-ModuleTestFileList @functionInput -Verbose
Write-Verbose 'Found module test files' -Verbose
$testFilePaths | ForEach-Object { Write-Verbose "- [$_]" -Verbose }
# Output values to be accessed by next jobs
$compressedOutput = $testFilePaths | ConvertTo-Json -Compress
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ms.aad.domainservices.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
# Initialize pipeline #
###########################
job_initialize_pipeline:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
name: 'Initialize pipeline'
steps:
- name: 'Checkout'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ms.analysisservices.servers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
# Initialize pipeline #
###########################
job_initialize_pipeline:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
name: 'Initialize pipeline'
steps:
- name: 'Checkout'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ms.apimanagement.service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
# Initialize pipeline #
###########################
job_initialize_pipeline:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
name: 'Initialize pipeline'
steps:
- name: 'Checkout'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ms.app.containerapps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
# Initialize pipeline #
###########################
job_initialize_pipeline:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
name: 'Initialize pipeline'
steps:
- name: 'Checkout'
Expand Down
84 changes: 84 additions & 0 deletions .github/workflows/ms.app.jobs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: 'App - Jobs'

on:
workflow_dispatch:
inputs:
staticValidation:
type: boolean
description: 'Execute static validation'
required: false
default: true
deploymentValidation:
type: boolean
description: 'Execute deployment validation'
required: false
default: true
removeDeployment:
type: boolean
description: 'Remove deployed module'
required: false
default: true
prerelease:
type: boolean
description: 'Publish prerelease module'
required: false
default: false
push:
branches:
- main
paths:
- '.github/actions/templates/**'
- '.github/workflows/template.module.yml'
- '.github/workflows/ms.app.jobs.yml'
- 'modules/app/job/**'
- 'utilities/pipelines/**'
- '!utilities/pipelines/deploymentRemoval/**'
- '!*/**/README.md'

env:
modulePath: 'modules/app/job'
workflowPath: '.github/workflows/ms.app.jobs.yml'

concurrency:
group: ${{ github.workflow }}

jobs:
###########################
# Initialize pipeline #
###########################
job_initialize_pipeline:
runs-on: ubuntu-latest
name: 'Initialize pipeline'
steps:
- name: 'Checkout'
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'Set input parameters to output variables'
id: get-workflow-param
uses: ./.github/actions/templates/getWorkflowInput
with:
workflowPath: '${{ env.workflowPath}}'
- name: 'Get parameter file paths'
id: get-module-test-file-paths
uses: ./.github/actions/templates/getModuleTestFiles
with:
modulePath: '${{ env.modulePath }}'
outputs:
workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }}
moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }}
modulePath: '${{ env.modulePath }}'

##############################
# Call reusable workflow #
##############################
call-workflow-passing-data:
name: 'Module'
needs:
- job_initialize_pipeline
uses: ./.github/workflows/template.module.yml
with:
workflowInput: '${{ needs.job_initialize_pipeline.outputs.workflowInput }}'
moduleTestFilePaths: '${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}'
modulePath: '${{ needs.job_initialize_pipeline.outputs.modulePath}}'
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/ms.app.managedenvironments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
# Initialize pipeline #
###########################
job_initialize_pipeline:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
name: 'Initialize pipeline'
steps:
- name: 'Checkout'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
# Initialize pipeline #
###########################
job_initialize_pipeline:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
name: 'Initialize pipeline'
steps:
- name: 'Checkout'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ms.authorization.locks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
# Initialize pipeline #
###########################
job_initialize_pipeline:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
name: 'Initialize pipeline'
steps:
- name: 'Checkout'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ms.authorization.policyassignments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
# Initialize pipeline #
###########################
job_initialize_pipeline:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
name: 'Initialize pipeline'
steps:
- name: 'Checkout'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ms.authorization.policydefinitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
# Initialize pipeline #
###########################
job_initialize_pipeline:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
name: 'Initialize pipeline'
steps:
- name: 'Checkout'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ms.authorization.policyexemptions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
# Initialize pipeline #
###########################
job_initialize_pipeline:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
name: 'Initialize pipeline'
steps:
- name: 'Checkout'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
# Initialize pipeline #
###########################
job_initialize_pipeline:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
name: 'Initialize pipeline'
steps:
- name: 'Checkout'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ms.authorization.roleassignments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
# Initialize pipeline #
###########################
job_initialize_pipeline:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
name: 'Initialize pipeline'
steps:
- name: 'Checkout'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ms.authorization.roledefinitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
# Initialize pipeline #
###########################
job_initialize_pipeline:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
name: 'Initialize pipeline'
steps:
- name: 'Checkout'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ms.automation.automationaccounts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
# Initialize pipeline #
###########################
job_initialize_pipeline:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
name: 'Initialize pipeline'
steps:
- name: 'Checkout'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ms.batch.batchaccounts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
# Initialize pipeline #
###########################
job_initialize_pipeline:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
name: 'Initialize pipeline'
steps:
- name: 'Checkout'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ms.cache.redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
# Initialize pipeline #
###########################
job_initialize_pipeline:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
name: 'Initialize pipeline'
steps:
- name: 'Checkout'
Expand Down
Loading

0 comments on commit 9678bed

Please sign in to comment.