-
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.
[@azure-tools/azure-spec-dashboard] Deployment script for Azure Spec …
…Dashboard (#1997) This PR creates the pipeline for Deployment of the Azure Spec Dashboard. Please review and approve the PR. Thanks
- Loading branch information
1 parent
6fd0457
commit 5506281
Showing
1 changed file
with
43 additions
and
1 deletion.
There are no files selected for viewing
44 changes: 43 additions & 1 deletion
44
eng/pipelines/deploy-azure-spec-dashboard-storage-account.yml
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 |
---|---|---|
@@ -1 +1,43 @@ | ||
# Pending file | ||
trigger: | ||
branches: | ||
include: | ||
- main | ||
# For patch releases | ||
- release/* | ||
|
||
pr: none | ||
|
||
extends: | ||
template: /eng/pipelines/templates/1es-redirect.yml | ||
parameters: | ||
variables: | ||
- template: /eng/pipelines/templates/variables/globals.yml@self | ||
stages: | ||
- stage: build | ||
displayName: Build and Deploy | ||
|
||
pool: | ||
name: $(WINDOWSPOOL) | ||
image: $(WINDOWSVMIMAGE) | ||
os: windows | ||
|
||
jobs: | ||
- job: build | ||
displayName: Build | ||
|
||
variables: | ||
TYPESPEC_SKIP_DOCUSAURUS_BUILD: true # Disable docusaurus build | ||
|
||
steps: | ||
- template: /eng/pipelines/templates/install.yml | ||
- template: /eng/pipelines/templates/build.yml | ||
|
||
- task: AzureCLI@2 | ||
inputs: | ||
azureSubscription: "TypeSpec Storage" | ||
scriptType: "bash" | ||
scriptLocation: "inlineScript" | ||
inlineScript: | | ||
echo "Uploading files to Azure Blob Storage..." | ||
az storage blob upload-batch --account-name azurespecdashboard --source packages/azure-spec-dashboard/dist/ --destination '$web' --overwrite | ||
displayName: "Upload files to Azure Blob Storage" |