Commit cd528c3f authored by Reza Sahebgharan's avatar Reza Sahebgharan

stage build test

parent b1d5ec08
Pipeline #388 passed with stages
in 35 seconds
......@@ -20,7 +20,12 @@ build_in_branch:
#- echo y | pscp.exe -batch -l administrator -pw $env:WinRunPass ./scripts/karname-app.tar WinRun:c:/Users/administrator/karname-app.tar # save docker in remote server
#- echo y | plink -batch -ssh administrator@WinRun -pw $env:WinRunPass docker load -i c:/Users/administrator/karname-app.tar -q
- echo y | pscp.exe -batch -l administrator -pw $env:WinRunPass ./docker-compose-staging.yml WinRun:c:/Users/administrator/docker-compose.yml # save docker-compose.yml in remote server
- echo y | plink -batch -ssh administrator@WinRun -pw $env:WinRunPass cd c:/Users/administrator/ ; Set-Variable -Name "TAG_VERSION" -Value $env:TAG_VERSION ;docker-compose up -d --force-recreate
- Set-Variable -Name "envtext" -Value "TAG_VERSION=$env:TAG_VERSION"
- New-Item -Path '.\.env' -ItemType File
- Add-Content .\.env "$envtext"
- echo y | pscp.exe -batch -l administrator -pw $env:WinRunPass ./.env WinRun:c:/Users/administrator/.env # save .env in remote server
- echo y | plink -batch -ssh administrator@WinRun -pw $env:WinRunPass cd c:/Users/administrator/ ; docker-compose config ;docker-compose up -d --force-recreate
- ./scripts/command.ps1
allow_failure: true
except:
......
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 to comment