-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c882f2
commit 304f6cf
Showing
3 changed files
with
163 additions
and
163 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# ASP.NET Core (.NET Framework) | ||
# Build and test ASP.NET Core projects targeting the full .NET Framework. | ||
# Add steps that publish symbols, save build artifacts, and more: | ||
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core | ||
|
||
# resources: | ||
# repositories: | ||
# - repository: Frontend | ||
# type: github | ||
# endpoint: Azure Devops OrsoDevOps | ||
# name: orso-co/Orso.Arpa.Web | ||
# ref: staging | ||
# trigger: | ||
# - staging | ||
|
||
# trigger: | ||
# - develop | ||
# pr: none | ||
|
||
# pool: | ||
# vmImage: 'windows-latest' | ||
|
||
# variables: | ||
# backendWorkingDirectory: '$(AGENT.BUILDDIRECTORY)\Orso.Arpa.Api' | ||
# frontendWorkingDirectory: '$(AGENT.BUILDDIRECTORY)\Orso.Arpa.Web' | ||
# solution: 'Orso.Arpa.Api\**\*.sln' | ||
# buildPlatform: 'Any CPU' | ||
# buildConfiguration: 'Release' | ||
# frontendOutputPath: '..\a\Orso.Arpa.Api\wwwroot' | ||
# stage: 'staging' | ||
# targetFramework: '8.0' | ||
|
||
# steps: | ||
# - checkout: self | ||
# path: 'Orso.Arpa.Api' | ||
# - checkout: Frontend | ||
# path: 'Orso.Arpa.Web' | ||
# - task: UseDotNet@2 | ||
# displayName: Use .NET SDK $(targetFramework).x | ||
# inputs: | ||
# packageType: 'sdk' | ||
# version: '$(targetFramework).x' | ||
# - task: DotNetCoreCLI@2 | ||
# displayName: Restore Backend | ||
# inputs: | ||
# command: restore | ||
# projects: '$(backendWorkingDirectory)/**/*.csproj' | ||
# - task: DotNetCoreCLI@2 | ||
# displayName: Build Backend | ||
# inputs: | ||
# command: build | ||
# projects: '$(backendWorkingDirectory)/**/Orso.Arpa.Api.csproj' | ||
# arguments: --configuration $(BuildConfiguration) --no-restore | ||
# - task: DotNetCoreCLI@2 | ||
# displayName: Publish Backend | ||
# inputs: | ||
# command: publish | ||
# projects: '$(backendWorkingDirectory)/**/Orso.Arpa.Api.csproj' | ||
# publishWebProjects: false | ||
# arguments: --configuration $(BuildConfiguration) --output "$(build.artifactstagingdirectory)" | ||
# zipAfterPublish: false | ||
# - task: NodeTool@0 | ||
# inputs: | ||
# versionSpec: '18.17' | ||
# displayName: 'Install Node.js' | ||
# - script: npm install --legacy-peer-deps | ||
# displayName: 'Install Frontend Dependencies' | ||
# workingDirectory: $(frontendWorkingDirectory) | ||
# - script: npx ng build --configuration staging --output-path $(frontendOutputPath) | ||
# displayName: 'Build Frontend' | ||
# workingDirectory: $(frontendWorkingDirectory) | ||
# - task: ArchiveFiles@2 | ||
# displayName: Create .zip File | ||
# inputs: | ||
# rootFolderOrFile: '$(build.artifactstagingdirectory)/Orso.Arpa.Api' | ||
# includeRootFolder: false | ||
# archiveType: 'zip' | ||
# archiveFile: '$(Build.ArtifactStagingDirectory)/Orso.Arpa.Api.zip' | ||
# replaceExistingArchive: true | ||
# verbose: true | ||
# - task: PublishBuildArtifacts@1 | ||
# displayName: Publish Artifact | ||
# inputs: | ||
# PathtoPublish: $(build.artifactstagingdirectory)/Orso.Arpa.Api.zip | ||
# ArtifactName: 'orso-arpa-$(stage)' | ||
# TargetPath: '\\my\share\$(Build.DefinitionName)\$(Build.BuildNumber)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters