-
-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from tidusjar/feature/v4
Update
- Loading branch information
Showing
624 changed files
with
36,682 additions
and
21,968 deletions.
There are no files selected for viewing
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,93 @@ | ||
|
||
variables: | ||
- template: templates/variables.yml | ||
|
||
stages: | ||
- stage: build | ||
jobs: | ||
- job: Build | ||
pool: | ||
vmImage: ${{ variables.vmImage }} | ||
steps: | ||
- template: templates/build-steps.yml | ||
|
||
- stage: publish | ||
jobs: | ||
- job: | ||
strategy: | ||
matrix: | ||
win10-x64: | ||
runtime: win10-x64 | ||
format: zip | ||
compression: zip | ||
win10-x86: | ||
runtime: win10-x86 | ||
format: zip | ||
compression: zip | ||
osx-x64: | ||
runtime: osx-x64 | ||
format: tar.gz | ||
compression: tar | ||
linux-x64: | ||
runtime: linux-x64 | ||
format: tar.gz | ||
compression: tar | ||
linux-arm: | ||
runtime: linux-arm | ||
format: tar.gz | ||
compression: tar | ||
linux-arm64: | ||
runtime: linux-arm64 | ||
format: tar.gz | ||
compression: tar | ||
pool: | ||
vmImage: ${{ variables.vmImage }} | ||
steps: | ||
- template: templates/publish-os-steps.yml | ||
|
||
- stage: deploy | ||
jobs: | ||
- job: | ||
condition: and(succeeded(), eq(variables.isMain, true)) | ||
steps: | ||
- task: DownloadPipelineArtifact@2 | ||
inputs: | ||
buildType: 'current' | ||
targetPath: '$(System.ArtifactsDirectory)' | ||
|
||
- task: PowerShell@2 | ||
displayName: 'Get Release Notes' | ||
inputs: | ||
targetType: 'inline' | ||
script: | | ||
$response = Invoke-WebRequest -Uri "https://ombireleasenote.azurewebsites.net/api/ReleaseNotesFunction?buildId=$(Build.BuildId)" | ||
Write-Host "##vso[task.setvariable variable=ReleaseNotes;]$response" | ||
# - task: GitHubRelease@1 | ||
# inputs: | ||
# gitHubConnection: 'github.com_tidusjar' | ||
# repositoryName: 'tidusjar/Ombi' | ||
# action: 'create' | ||
# target: '$(Build.SourceVersion)' | ||
# tagSource: 'userSpecifiedTag' | ||
# tag: '$(gitTag)' | ||
# isDraft: true | ||
# changeLogCompareToRelease: 'lastNonDraftRelease' | ||
# changeLogType: 'commitBased' | ||
|
||
- task: GitHubRelease@1 | ||
inputs: | ||
gitHubConnection: 'github.com_tidusjar' | ||
repositoryName: 'tidusjar/Ombi.Releases' | ||
action: 'create' | ||
target: 'c7fcbb77b58aef1076d635a9ef99e4374abc8672' | ||
tagSource: 'userSpecifiedTag' | ||
tag: '$(gitTag)' | ||
releaseNotesSource: 'inline' | ||
releaseNotesInline: '$(ReleaseNotes)' | ||
assets: | | ||
$(System.ArtifactsDirectory)/**/*.zip | ||
$(System.ArtifactsDirectory)/**/*.tar.gz | ||
isPreRelease: true | ||
changeLogCompareToRelease: 'lastNonDraftRelease' | ||
changeLogType: 'commitBased' |
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,34 @@ | ||
steps: | ||
## This is needed due to https://github.com/microsoft/azure-pipelines-tasks/issues/8429 | ||
## For the set version tool... | ||
- task: DotNetCoreInstaller@1 | ||
displayName: 'Use .NET Core sdk ' | ||
inputs: | ||
packageType: 'sdk' | ||
version: '5.x' | ||
|
||
- task: Yarn@3 | ||
displayName: 'Install UI Dependancies' | ||
inputs: | ||
projectDirectory: '$(UiLocation)' | ||
arguments: 'install' | ||
|
||
- task: Yarn@3 | ||
displayName: 'Build and Publish Angular App' | ||
inputs: | ||
projectDirectory: '$(UiLocation)' | ||
arguments: 'run build' | ||
|
||
- task: PublishPipelineArtifact@1 | ||
inputs: | ||
targetPath: '$(UiLocation)dist' | ||
artifact: 'angular_dist' | ||
publishLocation: 'pipeline' | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: Run Unit Tests | ||
inputs: | ||
command: 'custom' | ||
projects: '$(TestProject)' | ||
custom: 'test' | ||
continueOnError: false |
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,57 @@ | ||
steps: | ||
- task: DotNetCoreInstaller@1 | ||
displayName: 'Use .NET Core sdk ' | ||
inputs: | ||
packageType: 'sdk' | ||
version: '5.x' | ||
|
||
- task: DotNetCoreInstaller@1 | ||
displayName: 'Use .NET Core sdk for versioning' | ||
inputs: | ||
packageType: 'sdk' | ||
version: '3.1.x' | ||
|
||
- task: PowerShell@2 | ||
displayName: 'Set Version' | ||
inputs: | ||
targetType: 'inline' | ||
script: | | ||
dotnet tool install -g dotnet-setversion | ||
setversion -r $(BuildVersion) | ||
- task: DotNetCoreCLI@2 | ||
displayName: 'publish $(runtime)' | ||
inputs: | ||
command: 'publish' | ||
publishWebProjects: true | ||
arguments: '-c $(BuildConfiguration) -r "$(runtime)" -o $(Build.ArtifactStagingDirectory)/$(runtime) --self-contained true -p:PublishSingleFile=true' | ||
zipAfterPublish: false | ||
modifyOutputPath: false | ||
|
||
- task: DownloadPipelineArtifact@2 | ||
inputs: | ||
buildType: 'current' | ||
artifactName: 'angular_dist' | ||
targetPath: '$(Build.ArtifactStagingDirectory)/angular_dist' | ||
|
||
- task: CopyFiles@2 | ||
displayName: 'Copy Angular App $(runtime)' | ||
inputs: | ||
SourceFolder: '$(Build.ArtifactStagingDirectory)/angular_dist' | ||
Contents: '**' | ||
TargetFolder: '$(Build.ArtifactStagingDirectory)/$(runtime)/ClientApp/dist' | ||
|
||
- task: ArchiveFiles@2 | ||
displayName: 'Zip $(runtime)' | ||
inputs: | ||
rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/$(runtime)' | ||
includeRootFolder: false | ||
archiveType: $(compression) | ||
archiveFile: '$(Build.ArtifactStagingDirectory)/$(runtime).$(format)' | ||
replaceExistingArchive: true | ||
|
||
- task: PublishPipelineArtifact@1 | ||
inputs: | ||
targetPath: '$(Build.ArtifactStagingDirectory)/$(runtime).$(format)' | ||
artifact: '$(runtime)' | ||
publishLocation: 'pipeline' |
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,30 @@ | ||
variables: | ||
- name: "BuildConfiguration" | ||
value: "Release" | ||
|
||
- name: "vmImage" | ||
value: "ubuntu-latest" | ||
|
||
- name: "Solution" | ||
value: "**/*.sln" | ||
|
||
- name: "TestProject" | ||
value: "**/*.Tests.csproj" | ||
|
||
- name: "NetCoreVersion" | ||
value: "5.0" | ||
|
||
- name: "PublishLocation" | ||
value: "$(Build.SourcesDirectory)/src/Ombi/bin/Release/netcoreapp$(NetCoreVersion)" | ||
|
||
- name: "GitTag" | ||
value: "v$(buildVersion)" | ||
|
||
- name: "UiLocation" | ||
value: "$(Build.SourcesDirectory)/src/Ombi/ClientApp/" | ||
|
||
- name: "BuildVersion" | ||
value: "4.0.$(Build.BuildId)" | ||
|
||
- name: isMain | ||
value: $[eq(variables['Build.SourceBranch'], 'refs/heads/feature/v4')] |
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
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,11 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Wiki | ||
url: https://github.com/tidusjar/Ombi/wiki | ||
about: The Ombi wiki should help guide you through installation and setup as well as help resolve common problems and answer frequently asked questions | ||
- name: Reddit support | ||
url: https://www.reddit.com/r/Ombi | ||
about: Ask questions about Ombi | ||
- name: Feature suggestions | ||
url: https://ombifeatures.featureupvote.com | ||
about: Share your suggestions or ideas to make Ombi better! |
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.