Refactor tarball CI build to support both official and public builds (#12668)

This commit is contained in:
Michael Simons 2021-11-15 12:11:00 -06:00 committed by GitHub
parent 86fe76957f
commit 8a165144e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 8 deletions

View file

@ -0,0 +1,14 @@
trigger: none
pr: none
resources:
pipelines:
- pipeline: installer-build-resource
source: dotnet-installer-official-ci
trigger: true
stages:
- stage: build
jobs:
- template: /src/SourceBuild/Arcade/eng/common/templates/job/source-build-run-tarball-build.yml
parameters:
tarballResourceId: installer-build-resource

View file

@ -2,10 +2,7 @@ trigger: none
pr: none pr: none
resources: resources:
pipelines: pipelines:
- pipeline: dotnet-installer-official-ci-resource - pipeline: installer-build-resource
source: dotnet-installer-official-ci
trigger: true
- pipeline: installer-resource
source: installer source: installer
trigger: true trigger: true
@ -14,7 +11,4 @@ stages:
jobs: jobs:
- template: /src/SourceBuild/Arcade/eng/common/templates/job/source-build-run-tarball-build.yml - template: /src/SourceBuild/Arcade/eng/common/templates/job/source-build-run-tarball-build.yml
parameters: parameters:
${{ if eq(variables['System.TeamProject'], 'public') }}: tarballResourceId: installer-build-resource
tarballResourceId: installer-resource
${{ if eq(variables['System.TeamProject'], 'internal') }}:
tarballResourceId: dotnet-installer-official-ci-resource