mirror of https://github.com/Ombi-app/Ombi
parent
fafd06636d
commit
57a57b9439
@ -1,18 +0,0 @@
|
||||
name: ASP.NET Core CI
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Setup .NET Core
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 2.2.108
|
||||
|
||||
- name: Build Backend
|
||||
run: ./build.sh --settings_skipverification=true
|
@ -1,9 +0,0 @@
|
||||
workflow "New workflow" {
|
||||
on = "push"
|
||||
resolves = [".NET Core CLI"]
|
||||
}
|
||||
|
||||
action ".NET Core CLI" {
|
||||
uses = "baruchiro/github-actions@0.0.1"
|
||||
args = "build src/Ombi.sln"
|
||||
}
|
@ -1,72 +0,0 @@
|
||||
version: 4.0.{build}
|
||||
configuration: Release
|
||||
os: Visual Studio 2019
|
||||
|
||||
environment:
|
||||
nodejs_version: "12.13.1"
|
||||
typescript_version: "3.0.1"
|
||||
github_auth_token:
|
||||
secure: H/7uCrjmWHGJxgN3l9fbhhdVjvvWI8VVF4ZzQqeXuJwAf+PgSNBdxv4SS+rMQ+RH
|
||||
|
||||
|
||||
|
||||
# Do not build on tags (GitHub and BitBucket)
|
||||
skip_tags: true
|
||||
|
||||
install:
|
||||
# Get the latest stable version of Node.js or io.js
|
||||
- ps: Install-Product node $env:nodejs_version
|
||||
|
||||
# - cmd: set path=%programfiles(x86)%\\Microsoft SDKs\TypeScript\3.6;%path%
|
||||
# - cmd: tsc -v
|
||||
build_script:
|
||||
- ps: |
|
||||
$deployBranches =
|
||||
"feature/v4",
|
||||
"develop",
|
||||
"master";
|
||||
|
||||
If(($env:APPVEYOR_REPO_BRANCH -in $deployBranches -Or $env:APPVEYOR_REPO_COMMIT_MESSAGE -Match '!deploy') -And $env:APPVEYOR_REPO_COMMIT_MESSAGE -NotMatch '!build') {
|
||||
Write-Output "This is a deployment build"
|
||||
$env:Deploy = 'true'
|
||||
./build.ps1
|
||||
}
|
||||
Else
|
||||
{
|
||||
$env:Deploy = 'false'
|
||||
Write-Output "This is a not a deployment build"
|
||||
./build.ps1 --target=build
|
||||
}
|
||||
|
||||
skip_commits:
|
||||
files:
|
||||
- '**/*.md'
|
||||
|
||||
after_build:
|
||||
- ps: |
|
||||
$deployBranches =
|
||||
"feature/v4",
|
||||
"develop",
|
||||
"master";
|
||||
|
||||
If(($env:APPVEYOR_REPO_BRANCH -in $deployBranches -Or $env:APPVEYOR_REPO_COMMIT_MESSAGE -Match '!deploy') -And $env:APPVEYOR_REPO_COMMIT_MESSAGE -NotMatch '!build')
|
||||
{
|
||||
Write-Output "Deploying!"
|
||||
Get-ChildItem -Recurse .\*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
|
||||
Get-ChildItem -Recurse .\*.gz | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
|
||||
}
|
||||
Else
|
||||
{
|
||||
Write-Output "No Deployment"
|
||||
}
|
||||
|
||||
#cache:
|
||||
#- '%USERPROFILE%\.nuget\packages'
|
||||
deploy:
|
||||
- provider: GitHub
|
||||
release: Ombi v$(appveyor_build_version)
|
||||
auth_token:
|
||||
secure: jDpp1/WUQl3uN41fNI3VeZoRZbDiDfs3GPQ1v+C5ZNE3cWdnUvuJfCCfUbYUV1Rp
|
||||
draft: true
|
||||
on:
|
||||
branch: master
|
@ -1,181 +0,0 @@
|
||||
|
||||
|
||||
|
||||
# ASP.NET Core
|
||||
# Build and test ASP.NET Core projects targeting .NET Core.
|
||||
# Add steps that run tests, create a NuGet package, deploy, and more:
|
||||
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
|
||||
|
||||
trigger:
|
||||
branches:
|
||||
include:
|
||||
- feature/v4*
|
||||
exclude:
|
||||
- develop
|
||||
- master
|
||||
|
||||
variables:
|
||||
solution: '**/*.sln'
|
||||
testProj: '**/*.Tests.csproj'
|
||||
csProj: '**/*.csproj'
|
||||
buildConfiguration: 'Release'
|
||||
publishLocation: '$(Build.SourcesDirectory)/src/Ombi/bin/Release/netcoreapp3.1'
|
||||
|
||||
pool:
|
||||
vmImage: 'ubuntu-latest'
|
||||
|
||||
|
||||
steps:
|
||||
- task: Yarn@3
|
||||
displayName: Install UI Dependancies
|
||||
inputs:
|
||||
projectDirectory: '$(Build.SourcesDirectory)/src/Ombi/ClientApp/'
|
||||
arguments: 'install'
|
||||
|
||||
- task: DotNetCoreCLI@2
|
||||
displayName: Run Unit Tests
|
||||
inputs:
|
||||
command: 'test'
|
||||
projects: '**/*Tests.csproj'
|
||||
|
||||
### Publish
|
||||
|
||||
- task: DotNetCoreCLI@2
|
||||
displayName: Publish Win10-x64
|
||||
inputs:
|
||||
command: 'publish'
|
||||
publishWebProjects: true
|
||||
arguments: '-c $(buildConfiguration) -r "win10-x64" -o $(Build.ArtifactStagingDirectory)/win-64'
|
||||
|
||||
- task: DotNetCoreCLI@2
|
||||
displayName: Publish Win10-x86
|
||||
inputs:
|
||||
command: 'publish'
|
||||
publishWebProjects: true
|
||||
arguments: '-c $(buildConfiguration) -r "win10-x86" -o $(Build.ArtifactStagingDirectory)/win-86'
|
||||
|
||||
- task: DotNetCoreCLI@2
|
||||
displayName: Publish OSX-x64
|
||||
inputs:
|
||||
command: 'publish'
|
||||
publishWebProjects: true
|
||||
arguments: '-c $(buildConfiguration) -r "osx-x64" -o $(Build.ArtifactStagingDirectory)/osx-64'
|
||||
|
||||
- task: DotNetCoreCLI@2
|
||||
displayName: Publish Linux-x64
|
||||
inputs:
|
||||
command: 'publish'
|
||||
publishWebProjects: true
|
||||
arguments: '-c $(buildConfiguration) -r "linux-x64" -o $(Build.ArtifactStagingDirectory)/linux-64'
|
||||
|
||||
- task: DotNetCoreCLI@2
|
||||
displayName: Publish Linux-ARM
|
||||
inputs:
|
||||
command: 'publish'
|
||||
publishWebProjects: true
|
||||
arguments: '-c $(buildConfiguration) -r "linux-arm" -o $(Build.ArtifactStagingDirectory)/linux-arm'
|
||||
|
||||
- task: DotNetCoreCLI@2
|
||||
displayName: Publish Linux-ARM-x64
|
||||
inputs:
|
||||
command: 'publish'
|
||||
publishWebProjects: true
|
||||
arguments: '-c $(buildConfiguration) -r "linux-arm64" -o $(Build.ArtifactStagingDirectory)/linux-arm64'
|
||||
|
||||
### Zip them up
|
||||
|
||||
- task: ArchiveFiles@2
|
||||
displayName: Zip Win-x64
|
||||
inputs:
|
||||
rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/win-64'
|
||||
includeRootFolder: true
|
||||
archiveType: 'zip'
|
||||
archiveFile: '$(Build.ArtifactStagingDirectory)/win-x64-$(Build.BuildId).zip'
|
||||
replaceExistingArchive: true
|
||||
|
||||
- task: ArchiveFiles@2
|
||||
displayName: Zip Win-x86
|
||||
inputs:
|
||||
rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/win-86'
|
||||
includeRootFolder: true
|
||||
archiveType: 'zip'
|
||||
archiveFile: '$(Build.ArtifactStagingDirectory)/win-x86-$(Build.BuildId).zip'
|
||||
replaceExistingArchive: true
|
||||
|
||||
- task: ArchiveFiles@2
|
||||
displayName: Zip OSX-x64
|
||||
inputs:
|
||||
rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/osx-64'
|
||||
includeRootFolder: true
|
||||
archiveType: 'tar'
|
||||
archiveFile: '$(Build.ArtifactStagingDirectory)/osx-x64-$(Build.BuildId).tar.gz'
|
||||
replaceExistingArchive: true
|
||||
|
||||
- task: ArchiveFiles@2
|
||||
displayName: Zip Linux-x64
|
||||
inputs:
|
||||
rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/linux-64'
|
||||
includeRootFolder: true
|
||||
archiveType: 'tar'
|
||||
archiveFile: '$(Build.ArtifactStagingDirectory)/linux-x64-$(Build.BuildId).tar.gz'
|
||||
replaceExistingArchive: true
|
||||
|
||||
- task: ArchiveFiles@2
|
||||
displayName: Zip Linux-ARM
|
||||
inputs:
|
||||
rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/linux-arm'
|
||||
includeRootFolder: true
|
||||
archiveType: 'tar'
|
||||
archiveFile: '$(Build.ArtifactStagingDirectory)/linux-arm-$(Build.BuildId).tar.gz'
|
||||
replaceExistingArchive: true
|
||||
|
||||
- task: ArchiveFiles@2
|
||||
displayName: Zip Linux-ARM-x64
|
||||
inputs:
|
||||
rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/linux-arm64'
|
||||
includeRootFolder: true
|
||||
archiveType: 'tar'
|
||||
archiveFile: '$(Build.ArtifactStagingDirectory)/linux-arm64-$(Build.BuildId).tar.gz'
|
||||
replaceExistingArchive: true
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: Publish Win 64
|
||||
inputs:
|
||||
PathtoPublish: '$(Build.ArtifactStagingDirectory)/win-x64-$(Build.BuildId).zip'
|
||||
ArtifactName: 'win-x64-$(Build.BuildId).zip'
|
||||
publishLocation: 'Container'
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: Publish Win 86
|
||||
inputs:
|
||||
PathtoPublish: '$(Build.ArtifactStagingDirectory)/win-x86-$(Build.BuildId).zip'
|
||||
ArtifactName: 'win-x86-$(Build.BuildId).zip'
|
||||
publishLocation: 'Container'
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: Publish OSX 64
|
||||
inputs:
|
||||
PathtoPublish: '$(Build.ArtifactStagingDirectory)/osx-x64-$(Build.BuildId).tar.gz'
|
||||
ArtifactName: 'osx-x64-$(Build.BuildId).tar.gz'
|
||||
publishLocation: 'Container'
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: Publish Linux 64
|
||||
inputs:
|
||||
PathtoPublish: '$(Build.ArtifactStagingDirectory)/linux-x64-$(Build.BuildId).tar.gz'
|
||||
ArtifactName: 'drop'
|
||||
publishLocation: 'Container'
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: Publish Linux ARM
|
||||
inputs:
|
||||
PathtoPublish: '$(Build.ArtifactStagingDirectory)/linux-arm-$(Build.BuildId).tar.gz'
|
||||
ArtifactName: 'linux-arm-$(Build.BuildId).tar.gz'
|
||||
publishLocation: 'Container'
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: Publish OSX 64
|
||||
inputs:
|
||||
PathtoPublish: '$(Build.ArtifactStagingDirectory)/linux-arm64-$(Build.BuildId).tar.gz'
|
||||
ArtifactName: 'linux-arm64-$(Build.BuildId).tar.gz'
|
||||
publishLocation: 'Container'
|
Loading…
Reference in new issue