Commit 164a663e authored by Reza Sahebgharan's avatar Reza Sahebgharan

staging test

parent b96b832e
Pipeline #385 passed with stages
in 26 seconds
...@@ -17,9 +17,9 @@ build_in_branch: ...@@ -17,9 +17,9 @@ build_in_branch:
- echo "starting build in branch" - echo "starting build in branch"
- echo $env:WinRunPass - echo $env:WinRunPass
- 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 -pw $env:WinRunPass ./scripts/karname-app.tar $env:REMOTE_USERNAME@$env:REMOTE_IP:c:/Users/$env:REMOTE_USERNAME/karname-app.tar # save docker in remote server - echo y | pscp.exe -batch -l $env:REMOTE_USERNAME -pw $env:WinRunPass ./scripts/karname-app.tar $env:REMOTE_IP:c:/Users/$env:REMOTE_USERNAME/karname-app.tar # save docker in remote server
- echo y | plink -batch -ssh administrator@WinRun -pw $env:WinRunPass docker load -i c:/Users/$env:REMOTE_USERNAME/karname-app.tar -q - echo y | plink -batch -ssh administrator@WinRun -pw $env:WinRunPass docker load -i c:/Users/$env:REMOTE_USERNAME/karname-app.tar -q
- echo y | pscp.exe -batch -pw $env:WinRunPass ./docker-compose.yml $env:REMOTE_USERNAME@$env:REMOTE_IP:c:/Users/$env:REMOTE_USERNAME/docker-compose.yml # save docker-compose.yml in remote server - echo y | pscp.exe -batch -l $env:REMOTE_USERNAME -pw $env:WinRunPass ./docker-compose.yml $env:REMOTE_IP:c:/Users/$env:REMOTE_USERNAME/docker-compose.yml # save docker-compose.yml in remote server
- echo y | plink -batch -ssh administrator@WinRun -pw $env:WinRunPass cd c:/Users/$env:REMOTE_USERNAME/ ; docker-compose up -d --force-recreate - echo y | plink -batch -ssh administrator@WinRun -pw $env:WinRunPass cd c:/Users/$env:REMOTE_USERNAME/ ; docker-compose up -d --force-recreate
- ./scripts/command.ps1 - ./scripts/command.ps1
allow_failure: true allow_failure: true
......
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