-
Notifications
You must be signed in to change notification settings - Fork 221
Add github action logs to pipeline witness #8459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+2,479
−181
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
3d311da
Add github action logs
hallipr 898927c
Add hallipr as codeowner for pipeline-witness
hallipr 5f33a2d
Update .github/CODEOWNERS
hallipr c702571
Add deploy script
hallipr 0f1ee19
Revert net7 change
hallipr a55bdd5
Move to net8
hallipr ae00212
Update global.json
hallipr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...itness/Azure.Sdk.Tools.PipelineWitness.Tests/Azure.Sdk.Tools.PipelineWitness.Tests.csproj
This file contains hidden or 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
2 changes: 1 addition & 1 deletion
2
...s/pipeline-witness/Azure.Sdk.Tools.PipelineWitness/Azure.Sdk.Tools.PipelineWitness.csproj
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,45 @@ | ||
| <# | ||
| .SYNOPSIS | ||
| Builds and deploys the dotnet app. | ||
| #> | ||
| param( | ||
| [Parameter(Mandatory)] | ||
| [validateSet('staging', 'test')] | ||
| [string]$Target | ||
| ) | ||
|
|
||
| $repoRoot = Resolve-Path "$PSScriptRoot/../.." | ||
| . "$repoRoot/eng/common/scripts/Helpers/CommandInvocation-Helpers.ps1" | ||
|
|
||
| Push-Location $PSScriptRoot | ||
| try { | ||
| $subscriptionName = $Target -eq 'test' ? 'Azure SDK Developer Playground' : 'Azure SDK Engineering System' | ||
| $parametersFile = "./infrastructure/bicep/parameters.$Target.json" | ||
|
|
||
| $parameters = (Get-Content -Path $parametersFile -Raw | ConvertFrom-Json).parameters | ||
| $resourceGroupName = $parameters.appResourceGroupName.value | ||
| $resourceName = $parameters.webAppName.value | ||
|
|
||
| Write-Host "Deploying web app to:`n" + ` | ||
| " Subscription: $subscriptionName`n" + ` | ||
| " Resource Group: $resourceGroupName`n" + ` | ||
| " Resource: $resourceName`n" | ||
|
|
||
| $artifactsPath = "$repoRoot/artifacts" | ||
| $publishPath = "$artifactsPath/bin/Azure.Sdk.Tools.PipelineWitness.Tests/Release/net7.0/publish" | ||
|
|
||
| Invoke-LoggedCommand "dotnet publish --configuration Release" | ||
|
|
||
| Compress-Archive -Path "$publishPath/*" -DestinationPath "$artifactsPath/pipeline-witness.zip" -Force | ||
| if($?) { | ||
| Write-Host "pipeline-witness.zip created" | ||
| } else { | ||
| Write-Error "Failed to create pipeline-witness.zip" | ||
| exit 1 | ||
| } | ||
|
|
||
| Invoke-LoggedCommand "az webapp deploy --src-path '$artifactsPath/pipeline-witness.zip' --subscription '$subscriptionName' --resource-group '$resourceGroupName' --name '$resourceName'" | ||
| } | ||
| finally { | ||
| Pop-Location | ||
| } |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.