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
......@@ -14,8 +14,11 @@ build_in_branch:
tags:
- shell
script:
- echo "starting build in branch"
- echo $env:WinRunPass
- echo "starting build in branch"
- 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
- 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
......
......@@ -8,7 +8,7 @@ services:
build:
context: .
dockerfile: docker/devel/Dockerfile
image: karname-image
image: 'karname/app:${TAG_VERSION}'
ports:
- '5050:3000'
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