-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added a release stage to the pipeline which produces the tooling packages * said release stage only appears on manually queued internal builds, and attempts to publish all packages within the repo
- Loading branch information
Showing
4 changed files
with
74 additions
and
2 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
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,58 @@ | ||
parameters: | ||
- name: Version | ||
type: string | ||
default: 'staging' | ||
values: | ||
- 'beta' | ||
- 'latest' | ||
|
||
stages: | ||
- stage: Release | ||
displayName: Release ${{ parameters.Version }} | ||
dependsOn: Build | ||
|
||
jobs: | ||
- deployment: Publish | ||
environment: 'package-publish' | ||
pool: | ||
name: azsdk-pool-mms-ubuntu-2004-general | ||
image: azsdk-pool-mms-ubuntu-2004-1espt | ||
os: linux | ||
|
||
strategy: | ||
runOnce: | ||
deploy: | ||
steps: | ||
- checkout: self | ||
submodules: false | ||
|
||
- download: current | ||
artifact: drop | ||
timeoutInMinutes: 5 | ||
|
||
- pwsh: | | ||
Write-Host "Will deploy with tag of ${{ parameters.Version }}" | ||
Get-ChildItem "$(Pipeline.Workspace)/drop" -Recurse -Force ` | ||
| Where-Object { $_.Name -like "*.tgz" } ` | ||
| Copy-Item -Destination "$(Build.ArtifactStagingDirectory)" | ||
Get-ChildItem "$(Build.ArtifactStagingDirectory)" -Recurse -Force | % { Write-Host $_.FullName } | ||
displayName: Move artifact to $(Build.ArtifactStagingDirectory) | ||
- task: EsrpRelease@7 | ||
inputs: | ||
displayName: 'Publish to ESRP' | ||
ConnectedServiceName: 'Azure SDK Engineering System' | ||
ClientId: '5f81938c-2544-4f1f-9251-dd9de5b8a81b' | ||
KeyVaultName: 'AzureSDKEngKeyVault' | ||
AuthCertName: 'azure-sdk-esrp-release-auth-certificate' | ||
SignCertName: 'azure-sdk-esrp-release-sign-certificate' | ||
Intent: 'PackageDistribution' | ||
ContentType: 'npm' | ||
FolderLocation: $(Build.ArtifactStagingDirectory) | ||
Owners: ${{ coalesce(variables['Build.RequestedForEmail'], '[email protected]') }} | ||
Approvers: '[email protected]' | ||
ServiceEndpointUrl: 'https://api.esrp.microsoft.com' | ||
MainPublisher: 'ESRPRELPACMANTEST' | ||
DomainTenantId: '72f988bf-86f1-41af-91ab-2d7cd011db47' | ||
productstate: ${{ parameters.Version }} |
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