-echo y | plink -ssh administrator@staging.karname.ir "exit"
-echo y | plink -ssh administrator@staging.karname.ir "exit"
-docker save -o ./scripts/karname-app.tar karname/app:$env:TAG_VERSION# save docker in scripts folder
-docker save -o ./scripts/karname-app.tar karname-app:$env:TAG_VERSION# save docker in scripts folder
-echo y | pscp.exe -batch -l administrator -pw $env:StagingPass ./scripts/karname-app.tar staging.karname.ir:c:/Users/administrator/karname-app.tar# save docker in remote server
-echo y | pscp.exe -batch -l administrator -pw $env:StagingPass ./scripts/karname-app.tar staging.karname.ir:c:/Users/administrator/karname-app.tar# save docker in remote server
-echo y | pscp.exe -batch -l administrator -pw $env:StagingPass ./docker-compose-staging.yml staging.karname.ir:c:/Users/administrator/docker-compose.yml# save docker-compose.yml in remote server
-echo y | pscp.exe -batch -l administrator -pw $env:StagingPass ./docker-compose-staging.yml staging.karname.ir:c:/Users/administrator/docker-compose.yml# save docker-compose.yml in remote server
...
@@ -53,9 +53,9 @@ build_in_devel_windows:
...
@@ -53,9 +53,9 @@ build_in_devel_windows:
-cd C:\output\bundle\programs\server
-cd C:\output\bundle\programs\server
-npm install
-npm install
-cd ../..
-cd ../..
-docker build -t karname/app:$env:TAG_VERSION .
-docker build -t karname-app:$env:TAG_VERSION .
-echo y | plink -ssh administrator@staging.karname.ir "exit"
-echo y | plink -ssh administrator@staging.karname.ir "exit"
-docker save -o ./karname-app.tar karname/app:$env:TAG_VERSION# save docker in scripts folder
-docker save -o ./karname-app.tar karname-app:$env:TAG_VERSION# save docker in scripts folder
-echo y | pscp.exe -batch -l administrator -pw $env:StagingPass ./karname-app.tar staging.karname.ir:c:/Users/administrator/karname-app.tar# save docker in remote server
-echo y | pscp.exe -batch -l administrator -pw $env:StagingPass ./karname-app.tar staging.karname.ir:c:/Users/administrator/karname-app.tar# save docker in remote server
-echo y | pscp.exe -batch -l administrator -pw $env:StagingPass ./docker-compose.yml staging.karname.ir:c:/Users/administrator/docker-compose.yml# save docker-compose.yml in remote server
-echo y | pscp.exe -batch -l administrator -pw $env:StagingPass ./docker-compose.yml staging.karname.ir:c:/Users/administrator/docker-compose.yml# save docker-compose.yml in remote server