mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-24 06:55:23 -07:00
Adding custom pipeline settings
This commit is contained in:
parent
606fd8c919
commit
73d4cf92b7
1 changed files with 39 additions and 76 deletions
|
@ -6,8 +6,7 @@ stages:
|
||||||
- stage: build
|
- stage: build
|
||||||
jobs:
|
jobs:
|
||||||
- job: Build
|
- job: Build
|
||||||
pool:
|
pool: TestPipeline
|
||||||
vmImage: ${{ variables.vmImage }}
|
|
||||||
steps:
|
steps:
|
||||||
- template: templates/build-steps.yml
|
- template: templates/build-steps.yml
|
||||||
|
|
||||||
|
@ -16,32 +15,11 @@ stages:
|
||||||
- job:
|
- job:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
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:
|
linux-x64:
|
||||||
runtime: linux-x64
|
runtime: linux-x64
|
||||||
format: tar.gz
|
format: tar.gz
|
||||||
compression: tar
|
compression: tar
|
||||||
linux-arm:
|
pool: TestPipeline
|
||||||
runtime: linux-arm
|
|
||||||
format: tar.gz
|
|
||||||
compression: tar
|
|
||||||
linux-arm64:
|
|
||||||
runtime: linux-arm64
|
|
||||||
format: tar.gz
|
|
||||||
compression: tar
|
|
||||||
pool:
|
|
||||||
vmImage: ${{ variables.vmImage }}
|
|
||||||
steps:
|
steps:
|
||||||
- template: templates/publish-os-steps.yml
|
- template: templates/publish-os-steps.yml
|
||||||
|
|
||||||
|
@ -63,56 +41,41 @@ stages:
|
||||||
$response = Invoke-WebRequest -Uri "https://ombireleasenote.azurewebsites.net/api/ReleaseNotesFunction?buildId=$(Build.BuildId)"
|
$response = Invoke-WebRequest -Uri "https://ombireleasenote.azurewebsites.net/api/ReleaseNotesFunction?buildId=$(Build.BuildId)"
|
||||||
Write-Host "##vso[task.setvariable variable=ReleaseNotes;]$response"
|
Write-Host "##vso[task.setvariable variable=ReleaseNotes;]$response"
|
||||||
|
|
||||||
- task: GitHubRelease@1
|
# - task: GitHubRelease@1
|
||||||
displayName: 'Ombi.Releases Release'
|
# inputs:
|
||||||
inputs:
|
# gitHubConnection: 'github.com_tidusjar'
|
||||||
gitHubConnection: 'PAT'
|
# repositoryName: 'tidusjar/Ombi'
|
||||||
repositoryName: 'Ombi-app/Ombi.Releases'
|
# action: 'create'
|
||||||
action: 'create'
|
# target: '$(Build.SourceVersion)'
|
||||||
target: 'c7fcbb77b58aef1076d635a9ef99e4374abc8672'
|
# tagSource: 'userSpecifiedTag'
|
||||||
tagSource: 'userSpecifiedTag'
|
# tag: '$(gitTag)'
|
||||||
tag: '$(gitTag)'
|
# isDraft: true
|
||||||
releaseNotesSource: 'inline'
|
# changeLogCompareToRelease: 'lastNonDraftRelease'
|
||||||
releaseNotesInline: '$(ReleaseNotes)'
|
# changeLogType: 'commitBased'
|
||||||
assets: |
|
|
||||||
$(System.ArtifactsDirectory)/**/*.zip
|
|
||||||
$(System.ArtifactsDirectory)/**/*.tar.gz
|
|
||||||
isPreRelease: true
|
|
||||||
changeLogCompareToRelease: 'lastNonDraftRelease'
|
|
||||||
changeLogType: 'commitBased'
|
|
||||||
|
|
||||||
- task: GitHubRelease@1
|
#- task: GitHubRelease@1
|
||||||
displayName: 'Ombi Release'
|
# inputs:
|
||||||
inputs:
|
# gitHubConnection: 'github.com_tidusjar'
|
||||||
gitHubConnection: 'PAT'
|
# repositoryName: 'tidusjar/Ombi.Releases'
|
||||||
repositoryName: 'Ombi-app/Ombi'
|
# action: 'create'
|
||||||
action: 'create'
|
# target: 'c7fcbb77b58aef1076d635a9ef99e4374abc8672'
|
||||||
target: '$(Build.SourceVersion)'
|
# tagSource: 'userSpecifiedTag'
|
||||||
tagSource: 'userSpecifiedTag'
|
# tag: '$(gitTag)'
|
||||||
tag: '$(gitTag)'
|
# releaseNotesSource: 'inline'
|
||||||
releaseNotesSource: 'inline'
|
# releaseNotesInline: '$(ReleaseNotes)'
|
||||||
releaseNotesInline: '$(ReleaseNotes)'
|
# assets: |
|
||||||
assets: |
|
# $(System.ArtifactsDirectory)/**/*.zip
|
||||||
$(System.ArtifactsDirectory)/**/*.zip
|
# $(System.ArtifactsDirectory)/**/*.tar.gz
|
||||||
$(System.ArtifactsDirectory)/**/*.tar.gz
|
# isPreRelease: true
|
||||||
isPreRelease: true
|
# changeLogCompareToRelease: 'lastNonDraftRelease'
|
||||||
changeLogCompareToRelease: 'lastNonDraftRelease'
|
# changeLogType: 'commitBased'
|
||||||
changeLogType: 'commitBased'
|
- deployment: VMDeploy
|
||||||
|
displayName: web
|
||||||
- task: PowerShell@2
|
environment:
|
||||||
displayName: "Trigger APT build"
|
name: Test1
|
||||||
inputs:
|
resourceType: VirtualMachine
|
||||||
targetType: 'inline'
|
strategy:
|
||||||
script: |
|
runOnce:
|
||||||
$body = @{
|
deploy:
|
||||||
"ref"="main"
|
steps:
|
||||||
"inputs"= @{"version"= "$(gitTag)"}
|
- script: tar xvf /home/azure/azagent/_work/1/linux-x64/linux-x64.tar.gz -C /home/azure/azagent/_work/1/linux-x64/ && sudo systemctl stop ombi && cp -R /home/azure/azagent/_work/1/linux-x64/* /opt/ombi && sudo systemctl start ombi
|
||||||
} | ConvertTo-Json
|
|
||||||
|
|
||||||
$header = @{
|
|
||||||
"Accept"="application/vnd.github.v3+json"
|
|
||||||
"Authorization"="Bearer $(APTPAT)"
|
|
||||||
"User-Agent"="Ombi"
|
|
||||||
}
|
|
||||||
|
|
||||||
Invoke-RestMethod -Uri "https://api.github.com/repos/Ombi-app/Ombi.Apt/actions/workflows/build-deb.yml/dispatches" -Method 'Post' -Body $body -Headers $header
|
|
Loading…
Add table
Add a link
Reference in a new issue