/
azure-pipelines.yml
50 lines (41 loc) · 1.17 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
# Ruby
# Package your Ruby project.
# Add steps that install rails, analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/ruby
trigger:
- main
pool:
name: Default
demands:
- agent.name -equals wheeler-verify-app-agent
variables:
- name: appDir
value: app
steps:
- task: NodeTool@0
inputs:
versionSpec: '14.16.1'
displayName: 'Install Node'
- script: |
npm install --global yarn
yarn --version
displayName: 'Install Yarn'
workingDirectory: $(appDir)
- script: bundle install
displayName: 'Install Bundle Dependencies'
workingDirectory: $(appDir)
- script: yarn install --check-files
displayName: 'Install Yarn Dependencies'
workingDirectory: $(appDir)
- script: |
rm -rf bin/webpack*
rails webpacker:install
displayName: 'Install Webpacker Dependencies'
workingDirectory: $(appDir)
- task: AzureWebApp@1
inputs:
azureSubscription: 'WheelerLearning/wheeler146'
appName: 'wheeler-verify-app-site'
deploymentMethod: 'zipDeploy'
package: $(System.DefaultWorkingDirectory)/$(appDir)
slotName: 'stg'