Skip to content

Commit 66aab42

Browse files
authored
add vsts deploy file for unified search app (#1869)
* add vsts deploy file for un ified search app * fix file name * remove unused tasks * remove unused file
1 parent 0e1a6e3 commit 66aab42

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

unified-search-app/.vsts-ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: unified-search-app
2+
pool:
3+
vmImage: ubuntu-latest
4+
5+
trigger:
6+
batch: true
7+
branches:
8+
include:
9+
- main
10+
path:
11+
include:
12+
- unified-search-app
13+
14+
15+
stages:
16+
- stage: Build_deploy
17+
dependsOn: []
18+
jobs:
19+
- job: build
20+
displayName: Build and deploy
21+
pool:
22+
vmImage: ubuntu-latest
23+
steps:
24+
- task: UsePythonVersion@0
25+
inputs:
26+
versionSpec: "3.11"
27+
displayName: "Use Python 3.11"
28+
29+
- task: Docker@2
30+
inputs:
31+
containerRegistry: '$(containerRegistry)'
32+
repository: 'main'
33+
command: 'buildAndPush'
34+
Dockerfile: 'Dockerfile'
35+
tags: 'latest'
36+
- task: AzureAppServiceManage@0
37+
inputs:
38+
azureSubscription: '$(subscription)'
39+
Action: 'Restart Azure App Service'
40+
WebAppName: '$(webApp)'

0 commit comments

Comments
 (0)