Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
69 lines (59 sloc) 1.68 KB
trigger:
- master
pr:
- master
stages:
- stage: Build
jobs:
- job: Build
pool:
name: Hosted VS2017
demands:
- npm
steps:
- task: Npm@1
displayName: 'npm install'
inputs:
verbose: false
- task: Npm@1
displayName: 'npm build'
inputs:
command: custom
verbose: false
customCommand: 'run build'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: 'publish'
ArtifactName: 'webAssets'
publishLocation: 'Container'
- stage: Deploy
jobs:
- job: Deploy
condition: ne(variables['Build.Reason'], 'PullRequest')
pool:
name: Hosted VS2017
demands:
- azureps
steps:
- task: DownloadBuildArtifacts@0
inputs:
ArtifactName: 'webAssets'
buildType: 'current'
downloadType: 'single'
downloadPath: '$(System.ArtifactsDirectory)'
- task: AzureFileCopy@1
displayName: CopyPublish
inputs:
SourcePath: '$(System.ArtifactsDirectory)/webAssets/Static'
azureSubscription: 'Płatność zgodnie z rzeczywistym użyciem (07d1404b-c7fa-42b2-937c-776e4736d073)'
Destination: AzureBlob
storage: ksiazkosilnikprod
ContainerName: prodhtml
BlobPrefix: Static
- task: AzurePowerShell@3
displayName: 'Azure PowerShell script: InlineScript'
inputs:
azureSubscription: 'Płatność zgodnie z rzeczywistym użyciem (07d1404b-c7fa-42b2-937c-776e4736d073)'
ScriptType: InlineScript
Inline: 'Get-AzureRmCdnProfile | Get-AzureRmCdnEndpoint | Unpublish-AzureRmCdnEndpointContent -PurgeContent "/*"'
azurePowerShellVersion: LatestVersion
You can’t perform that action at this time.