Commit a029b2ba authored by Reza Sahebgharan's avatar Reza Sahebgharan

run gitlab ci for windows base docker

parent 27a334c6
Pipeline #460 passed with stages
in 21 minutes and 25 seconds
...@@ -46,16 +46,16 @@ build_in_devel_windows: ...@@ -46,16 +46,16 @@ build_in_devel_windows:
- echo "starting build in devel-windows" - echo "starting build in devel-windows"
- npm install - npm install
- npm run test-jest - npm run test-jest
- meteor build ../output --directory --server-only - meteor build C:\output --directory --server-only
- Copy-Item -Path .\docker-compose.yml -Destination ..\output\bundle - Copy-Item -Path .\docker-compose.yml -Destination C:\output\bundle
- Copy-Item -Path .\docker\windows\Dockerfile -Destination ..\output\bundle - Copy-Item -Path .\docker\windows\Dockerfile -Destination C:\output\bundle
- cd ../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 ./scripts/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 ./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 ./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
- 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
- Set-Variable -Name "envtext" -Value "TAG_VERSION=$env:TAG_VERSION" - Set-Variable -Name "envtext" -Value "TAG_VERSION=$env:TAG_VERSION"
......
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