-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yaml
More file actions
67 lines (64 loc) · 1.89 KB
/
azure-pipelines.yaml
File metadata and controls
67 lines (64 loc) · 1.89 KB
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
name: Azure Pipelines
variables:
python.version: '3.7.6'
stages:
- stage: Build
jobs:
- job: Build
pool:
name: Hosted Ubuntu 1604
steps:
# Needed for Terraform VM deployment
# - task: InstallSSHKey@0
# inputs:
# knownHostsEntry: 'KNOWN_HOSTS_STRING'
# sshPublicKey: 'PUBLIC_KEY'
# sshKeySecureFile: 'id_rsa'
- task: ArchiveFiles@2
displayName: 'Archive FakeRestAPI'
inputs:
rootFolderOrFile: 'path/to/fakerestapi'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId)-fakerestapi.zip'
- publish: $(Build.ArtifactStagingDirectory)/$(Build.BuildId)-fakerestapi.zip
displayName: 'Upload Package'
artifact: drop-fakerestapi
- stage:
jobs:
- deployment: FakeRestAPI
pool:
vmImage: 'Ubuntu-16.04'
environment: 'TEST'
strategy:
runOnce:
deploy:
steps:
- task: AzureWebApp@1
displayName: 'Deploy Azure Web App'
inputs:
azureSubscription: ''
appName: ''
appType: webApp
package: $(Pipeline.Workspace)/drop-fakerestapi/$(Build.BuildId)-fakerestapi.zip
# - deployment: VMDeploy
# displayName: NAME
# environment:
# name: ENVIRONMENT NAME
# resourceType: VirtualMachine
# tags: TAG NAME
# strategy:
# runOnce:
# deploy:
# steps:
# - task: Bash@3
# inputs:
# targetType: 'inline'
# script: |
# #! /bin/bash
# sudo apt-get upgrade -y
# sudo apt-get install python3-pip -y
# sudo apt-get install unzip -y
# sudo apt-get install -y chromium-browser
# pip3 install selenium
# export PATH=$PATH:some/path