Commit 6b73e870 authored by Reza Sahebgharan's avatar Reza Sahebgharan

build stage test

parent c78aa365
Pipeline #396 passed with stages
in 2 minutes and 53 seconds
...@@ -15,7 +15,10 @@ build_in_branch: ...@@ -15,7 +15,10 @@ build_in_branch:
- shell - shell
script: script:
- echo "starting build in branch" - echo "starting build in branch"
- echo $env:WinRunPass - npm install
- npm run test-jest
- docker-compose config
- docker-compose build -force-rm
- 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
......
...@@ -8,7 +8,7 @@ services: ...@@ -8,7 +8,7 @@ services:
build: build:
context: . context: .
dockerfile: docker/devel/Dockerfile dockerfile: docker/devel/Dockerfile
image: karname-image image: 'karname/app:${TAG_VERSION}'
ports: ports:
- '5050:3000' - '5050:3000'
depends_on: depends_on:
......
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