Commit f62a70a3 by Urvil Shah

Change gitlab deployment script.

parent be51c69e
Pipeline #7168 passed with stages
in 24 minutes 7 seconds
Showing with 20 additions and 21 deletions
stages:
- build
- deploy
deploy_website:
build_website:
stage: build
script:
- nuget restore .\Mobile.Search.sln
- msbuild /p:Configuration=Release /p:OutDir=build\web .\Mobile.Search.Web\Mobile.Search.Web.csproj
artifacts:
expire_in: 6 weeks
paths:
- .\Mobile.Search.Web\build\web\_PublishedWebsites\Mobile.Search.Web
when: always
deploy_web:
stage: deploy
script:
- "& 'C:\\Python27\\Scripts\\pip.exe' uninstall pythondeploy -y"
- "& 'C:\\Python27\\Scripts\\pip.exe' install git+http://git.adk-mobile.com/Public/PythonDeploy.git@refactor"
- "& 'C:\\Python27\\python.exe' -c 'from pythondeploy.deploy import run_deployment; run_deployment()'"
- Import-Module PSRemoteDeploy
- $servers = $env:DEPLOY_SERVERS -split ';'
- Copy-FilesToServers -Servers $servers -UserName $env:DEPLOY_USERNAME -Password $env:DEPLOY_PASSWORD -LocalPath ".\Mobile.Search.Web\build\web\_PublishedWebsites\Mobile.Search.Web\*" -RemotePath "C:\adk-mobile\$env:CI_PROJECT_NAME\Mobile.Search.Web\$env:CI_BUILD_ID"
- Set-IISPhysicalPaths -Servers $servers -UserName $env:DEPLOY_USERNAME -Password $env:DEPLOY_PASSWORD -IISSite "Mobile.Search.Web" -Path "c:\adk-mobile\$env:CI_PROJECT_NAME\Mobile.Search.Web\$env:CI_BUILD_ID"
when: manual
\ No newline at end of file
deployments:
- provider: msdeploy_website
server: mobsearch.dartmob.net
username: Administrator
password: 7=7)g??4ykx
iis_site_name: Mobile.Search.Web
branch: master
- provider: aws_rolling_deployment
load_balancers:
- name: elb-MobSearch
region: us-west-2
username: Administrator
password: 7=7)g??4ykx
iis_site_name: Mobile.Search.Web
branch: production
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment