kreta/BuildPipelineDefinitions/Kreta.yml
2024-03-13 00:33:46 +01:00

122 lines
5.4 KiB
YAML

parameters:
- name: isPublish
type: boolean
displayName: 'Alkalmazásból készült csomagok publikálása a Pipeline Artifact-ba'
default: false
trigger:
batch: 'true'
branches:
include:
- master
- releases/*
pr: none
resources:
repositories:
- repository: templates
type: git
name: KretaCore/Kreta.Core.PipelineYml
variables:
- name: buildConfiguration
value: 'Release'
- name: buildPlatform
value: 'AnyCPU'
- name: migratorProjectName
value: 'Kreta.DataAccess.Migrations'
- name: webProjectName
value: 'Kreta.Web'
- name: naploWebApiProjectName
value: 'Kreta.Naplo.WebApi'
- name: ellenorzoWebApiProjectName
value: 'Kreta.Ellenorzo.WebApi'
- name: eUgyintezesWebApiProjectName
value: 'Kreta.eUgyintezes.WebApi'
- name: userWebProjectName
value: 'Kreta.User.WebApi'
jobs:
- template: BuildApplication.yml@templates
parameters:
versioningScheme: 'framework'
versioningFilePath: 'Tools'
artifactName: 'Kreta'
isPublish: ${{ parameters.isPublish }}
projectConfigurations:
[
{
sdkType: 'framework',
projectName: '${{ variables.migratorProjectName }}',
projectPath: '${{ variables.migratorProjectName }}\${{ variables.migratorProjectName }}.csproj',
solutionPath: 'KretaBuildSolution.sln',
nugetConfigPath: 'NuGet\NuGet.config',
deploySourcePath: '$(Build.BinariesDirectory)\${{ variables.migratorProjectName }}',
isWebApplication: false,
runTest: false,
npmInstall: false,
gitTagEnabled: false,
msBuildArguments: '/p:OutputPath=$(Build.BinariesDirectory)\${{ variables.migratorProjectName }}'
},
{
sdkType: 'framework',
projectName: '${{ variables.webProjectName }}',
projectPath: 'KretaWeb\${{ variables.webProjectName }}.csproj',
solutionPath: 'KretaBuildSolution.sln',
nugetConfigPath: 'NuGet\NuGet.config',
deploySourcePath: '$(Build.BinariesDirectory)\${{ variables.webProjectName }}\_PublishedWebsites\${{ variables.webProjectName }}',
isWebApplication: true,
runTest: false,
npmInstall: false,
gitTagEnabled: true,
msBuildArguments: '/p:OutputPath=$(Build.BinariesDirectory)\${{ variables.webProjectName }}'
},
{
sdkType: 'framework',
projectName: '${{ variables.naploWebApiProjectName }}',
projectPath: 'Kreta.WebApi\Naplo\${{ variables.naploWebApiProjectName }}\${{ variables.naploWebApiProjectName }}.csproj',
solutionPath: 'KretaBuildSolution.sln',
nugetConfigPath: 'NuGet\NuGet.config',
deploySourcePath: '$(Build.BinariesDirectory)\${{ variables.naploWebApiProjectName }}\_PublishedWebsites\${{ variables.naploWebApiProjectName }}',
isWebApplication: true,
runTest: false,
npmInstall: false,
gitTagEnabled: false,
msBuildArguments: '/p:OutputPath=$(Build.BinariesDirectory)\${{ variables.naploWebApiProjectName }}'
},
{
sdkType: 'framework',
projectName: '${{ variables.ellenorzoWebApiProjectName }}',
projectPath: 'Kreta.WebApi\Ellenorzo\${{ variables.ellenorzoWebApiProjectName }}\${{ variables.ellenorzoWebApiProjectName }}.csproj',
solutionPath: 'KretaBuildSolution.sln',
nugetConfigPath: 'NuGet\NuGet.config',
deploySourcePath: '$(Build.BinariesDirectory)\${{ variables.ellenorzoWebApiProjectName }}\_PublishedWebsites\${{ variables.ellenorzoWebApiProjectName }}',
isWebApplication: true,
runTest: false,
npmInstall: false,
gitTagEnabled: false,
msBuildArguments: '/p:OutputPath=$(Build.BinariesDirectory)\${{ variables.ellenorzoWebApiProjectName }}'
},
{
sdkType: 'framework',
projectName: '${{ variables.eUgyintezesWebApiProjectName }}',
projectPath: 'Kreta.WebApi\eUgyintezes\${{ variables.eUgyintezesWebApiProjectName }}\${{ variables.eUgyintezesWebApiProjectName }}.csproj',
solutionPath: 'KretaBuildSolution.sln',
nugetConfigPath: 'NuGet\NuGet.config',
deploySourcePath: '$(Build.BinariesDirectory)\${{ variables.eUgyintezesWebApiProjectName }}\_PublishedWebsites\${{ variables.eUgyintezesWebApiProjectName }}',
isWebApplication: true,
runTest: false,
npmInstall: false,
gitTagEnabled: false,
msBuildArguments: '/p:OutputPath=$(Build.BinariesDirectory)\${{ variables.eUgyintezesWebApiProjectName }}'
},
{
sdkType: 'framework',
projectName: '${{ variables.userWebProjectName }}',
projectPath: 'Kreta.WebApi\User\${{ variables.userWebProjectName }}\${{ variables.userWebProjectName }}.csproj',
solutionPath: 'KretaBuildSolution.sln',
nugetConfigPath: 'NuGet\NuGet.config',
deploySourcePath: '$(Build.BinariesDirectory)\${{ variables.userWebProjectName }}\_PublishedWebsites\${{ variables.userWebProjectName }}',
isWebApplication: true,
runTest: false,
npmInstall: false,
gitTagEnabled: false,
msBuildArguments: '/p:OutputPath=$(Build.BinariesDirectory)\${{ variables.userWebProjectName }}'
}
]