-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Abstract auth to the dev feeds. additionally, add pip auth (#13522)
* abstract auth to the dev feeds. additionally, add pip auth * rename to yml-style filename formatting
- Loading branch information
Showing
5 changed files
with
43 additions
and
18 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
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,26 @@ | ||
parameters: | ||
DevFeedName: 'public/azure-sdk-for-python' | ||
|
||
steps: | ||
- pwsh: | | ||
# For safety default to publishing to the private feed. | ||
# Publish to https://dev.azure.com/azure-sdk/internal/_packaging?_a=feed&feed=azure-sdk-for-python-pr | ||
$devopsFeedName = 'internal/azure-sdk-for-python-pr' | ||
if ('$(Build.Repository.Name)' -eq 'Azure/azure-sdk-for-python') { | ||
# Publish to https://dev.azure.com/azure-sdk/public/_packaging?_a=feed&feed=azure-sdk-for-python | ||
$devopsFeedName = '${{ parameters.DevFeedName }}' | ||
} | ||
echo "##vso[task.setvariable variable=DevFeedName]$devopsFeedName" | ||
echo "Using DevopsFeed = $devopsFeedName" | ||
displayName: Setup DevOpsFeedName | ||
- task: TwineAuthenticate@0 | ||
displayName: 'Twine Authenticate to feed' | ||
inputs: | ||
artifactFeeds: $(DevFeedName) | ||
|
||
- task: PipAuthenticate@1 | ||
displayName: 'Pip Authenticate to feed' | ||
inputs: | ||
artifactFeeds: $(DevFeedName) | ||
onlyAddExtraIndex: true |
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