Skip to content

Commit

Permalink
Upload demo images to CDN
Browse files Browse the repository at this point in the history
  • Loading branch information
ecraig12345 committed Sep 17, 2020
1 parent 3d11ce7 commit 647db99
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines.perf-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ steps:
workingDirectory: apps/perf-test
displayName: Perf Test
- task: AzureUpload@1
- task: AzureUpload@2
displayName: Upload Perf Test Result to PR deploy site (Fluent)
inputs:
SourcePath: 'packages/fluentui/perf-test/dist'
Expand All @@ -54,7 +54,7 @@ steps:
ContainerName: '$web'
BlobPrefix: 'pr-deploy-site/$(Build.SourceBranch)/perf-test/fluentui'

- task: AzureUpload@1
- task: AzureUpload@2
displayName: Upload Perf Test Result to PR deploy site
inputs:
SourcePath: 'apps/perf-test/dist'
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.release-fluentui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ steps:
NODE_ENV=production yarn build:fluentui:docs
displayName: yarn build:fluentui:docs
- task: AzureUpload@1
- task: AzureUpload@2
displayName: Upload docs site
inputs:
SourcePath: 'packages/fluentui/docs/dist'
Expand Down
3 changes: 2 additions & 1 deletion azure-pipelines.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,12 @@ steps:
yarn workspace @uifabric/build just generate-package-manifest
displayName: 'Generates a package manifest'
- task: AzureUpload@1
- task: AzureUpload@2
displayName: Upload Package Manifest
inputs:
SourcePath: 'package-manifest.json'
azureSubscription: 'UI Fabric (private)'
storage: fabricweb
ContainerName: 'fabric'
BlobPrefix: 'package-manifest/latest'
Gzip: false
13 changes: 12 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
- publish: $(Build.ArtifactStagingDirectory)
artifact: Build-PR-$(Build.BuildNumber)

- task: AzureUpload@1
- task: AzureUpload@2
displayName: Upload PR deploy site
inputs:
SourcePath: 'apps/pr-deploy-site/dist'
Expand All @@ -99,6 +99,17 @@ jobs:
ContainerName: '$web'
BlobPrefix: '$(deployBasePath)'

- task: AzureUpload@2
displayName: Upload demo images (master)
# condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
inputs:
azureSubscription: 'UI Fabric (bac044cf-49e1-4843-8dda-1ce9662606c8)'
BlobPrefix: 'assets'
CacheControl: 'public, max-age=600000'
ContainerName: 'fabric-website' # this container has a CDN
SourcePath: 'packages/fluentui/docs/src/public'
storage: fabricweb

- job: ScreenerFluent
workspace:
clean: all
Expand Down

0 comments on commit 647db99

Please sign in to comment.