Skip to content

Commit

Permalink
Update azure-pipelines-cd.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
RaananW committed Mar 16, 2020
1 parent fdcda7e commit 056270c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions azure-pipelines-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,19 @@ jobs:
env:
AZURE_PULLREQUESTID: $(System.PullRequest.PullRequestId)
NETLIFY_AUTH_TOKEN: $(babylon.netlify.authToken)
- task: AzureFileCopy@2
displayName: 'Update Preview Storage'
inputs:
SourcePath: 'dist/preview release'
azureSubscription: 'Visual Studio Enterprise (2bb1afe6-4492-4d3d-9cf8-e658f447d211)'
Destination: AzureBlob
storage: previewcdn
ContainerName: '$web'

- task: AzureCLI@2
displayName: 'Purge preview CDN'
inputs:
azureSubscription: 'Visual Studio Enterprise(2bb1afe6-4492-4d3d-9cf8-e658f447d211)'
scriptType: 'ps'
scriptLocation: 'inlineScript'
inlineScript: 'az cdn endpoint purge --resource-group Playground-Resources --profile-name Preview-CDN --name babylonjspreview --content-paths /*'

0 comments on commit 056270c

Please sign in to comment.