Commit eb898cbf authored by Reza Sahebgharan's avatar Reza Sahebgharan

test staging

parent 94d59243
Pipeline #413 passed with stages
in 1 minute and 27 seconds
...@@ -16,10 +16,10 @@ build_in_branch: ...@@ -16,10 +16,10 @@ build_in_branch:
- shell - shell
script: script:
- echo "starting build in branch" - echo "starting build in branch"
- npm install # - npm install
- npm run test-jest # - npm run test-jest
- docker-compose config # - docker-compose config
- docker-compose build # - docker-compose build
- 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 | plink -batch -ssh administrator@staging.karname.ir -pw $env:StagingPass docker load -i c:/Users/administrator/karname-app.tar -q - echo y | plink -batch -ssh administrator@staging.karname.ir -pw $env:StagingPass docker load -i c:/Users/administrator/karname-app.tar -q
......
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