-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
66 lines (53 loc) · 1.89 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
trigger:
- main
pool:
vmImage: windows-latest
steps:
- task: NodeTool@0
inputs:
versionSpec: '18.1.0'
displayName: 'Install Node.js'
- script: |
npm install
npm run build
displayName: 'npm install and build'
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Pipeline.Workspace)'
artifact: 'Art'
publishLocation: 'pipeline'
#- task: AzureRmWebAppDeployment@4
# inputs:
# ConnectionType: 'AzureRM'
# azureSubscription: 'Pay-As-You-Go(171f5f8c-bcb9-4185-8aaf-60ffbd04f09f)'
# appType: 'webApp'
# WebAppName: 'bill-angular'
# packageForLinux: '$(Pipeline.Workspace)'
#- task: AzureWebApp@1
# inputs:
# azureSubscription: 'Pay-As-You-Go(3)(171f5f8c-bcb9-4185-8aaf-60ffbd04f09f)'
# appType: 'webApp'
# appName: 'bill-angular'
# package: '$(System.DefaultWorkingDirectory)/**/*.zip'
# deploymentMethod: 'auto'
#- task: AzureFileCopy@4
# inputs:
# SourcePath: '$(Pipeline.Workspace)'
# azureSubscription: 'Pay-As-You-Go(171f5f8c-bcb9-4185-8aaf-60ffbd04f09f)'
# Destination: 'AzureBlob'
# storage: 'filsharetest'
# ContainerName: '$web'
# BlobPrefix: 'light'
#- task: AzureCLI@2
# inputs:
# azureSubscription: 'Pay-As-You-Go(1)(171f5f8c-bcb9-4185-8aaf-60ffbd04f09f)'
#
# scriptType: bash
# scriptLocation: 'inlinescript'
# inlinescript: |
# az storage blob upload-batch --account-name fdfiles --auth-mode key -d '$web' --source '$(Pipeline.Workspace)' --connection-string 'DefaultEndpointsProtocol=https;AccountName=filsharetest;AccountKey=y/oT2j7u3u8rZDKZ0qVOMWERFH/CRgToXYtsdRbm/tBnhWgm4uWUe1K0/BIOlqJrukiua4rBQAbO+AStP4DrWw==;EndpointSuffix=core.windows.net'
#--destination mycontainer --source <path-to-directory>