-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
52 lines (52 loc) · 1.68 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
# azure-pipelines.yml - configuration for Azure Pipelines
# Copyright (C) 2020 Kaz Nishimura
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice and
# this notice are preserved. This file is offered as-is, without any warranty.
---
variables:
deploy.azureSubscription: linuxfront-csave-audio
deploy.appName: linuxfront-csave-audio
trigger:
- master
stages:
- stage: Default
jobs:
- job: Package
pool:
vmImage: ubuntu-latest
steps:
- bash: |
cp iis/web.config $(Build.BinariesDirectory)/web.config
for i in index.html app.webmanifest service.js resources; do
cp -r $i $(Build.BinariesDirectory)/$i || exit $?
done
displayName: Copy contents
- task: ArchiveFiles@2
inputs:
includeRootFolder: false
- publish: $(Build.ArtifactStagingDirectory)
artifact: app
- stage: Deployment
dependsOn:
- Default
jobs:
- deployment: Deploy
pool:
vmImage: ubuntu-latest
environment: $(deploy.appName)
strategy:
runOnce:
deploy:
steps:
- checkout: none
- download: current
artifact: app
- task: AzureWebApp@1
inputs:
azureSubscription: $(deploy.azureSubscription)
appType: webApp
appName: $(deploy.appName)
package: $(Agent.BuildDirectory)/app/*.zip
deploymentMethod: zipDeploy