Commit b1d5ec08 authored by Reza Sahebgharan's avatar Reza Sahebgharan

stage test

parent 9668e395
Pipeline #387 passed with stages
in 32 seconds
...@@ -16,11 +16,11 @@ build_in_branch: ...@@ -16,11 +16,11 @@ build_in_branch:
script: script:
- 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 -l administrator -pw $env:WinRunPass ./scripts/karname-app.tar WinRun:c:/Users/administrator/karname-app.tar # save docker in remote server #- 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 | 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.yml WinRun:c:/Users/administrator/docker-compose.yml # save docker-compose.yml in remote server - 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/ ; docker-compose up -d --force-recreate - 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
- ./scripts/command.ps1 - ./scripts/command.ps1
allow_failure: true allow_failure: true
except: except:
......
version: '3'
services:
app:
container_name: karname-app
restart: on-failure
image: "karname/app:${TAG_VERSION}"
ports:
- '5050:3000'
depends_on:
- mongo
links:
- mongo
environment:
ROOT_URL: ${APP_ROOT_URL:-http://localhost}
MONGO_URL: mongodb://mongo:27017/karname
PORT: 3000
METEOR_SETTINGS: '{"worklistUrl":"http://192.168.0.156"}'
mongo:
image: mongo:latest
command:
- --storageEngine=wiredTiger
volumes:
- data:/data/db
volumes:
data:
\ No newline at end of file
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