Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
karname-ui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Reza Sahebgharan
karname-ui
Commits
9a12a459
Commit
9a12a459
authored
Jan 14, 2020
by
Reza Sahebgharan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Staging.hisworklist
parent
d6b595a7
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
10 deletions
+7
-10
.gitlab-ci.yml
.gitlab-ci.yml
+3
-5
Main.vue
client/views/Main.vue
+1
-0
docker-compose.yml
docker-compose.yml
+1
-1
command-server.bat
scripts/command-server.bat
+2
-2
command.bat
scripts/command.bat
+0
-2
No files found.
.gitlab-ci.yml
View file @
9a12a459
...
@@ -40,7 +40,7 @@ build_in_staging:
...
@@ -40,7 +40,7 @@ build_in_staging:
-
$env:TAG_VERSION=(git describe --tag --abbrev=0)
-
$env:TAG_VERSION=(git describe --tag --abbrev=0)
-
$env:BRANCHFULLNAME=(git name-rev --name-only HEAD)
-
$env:BRANCHFULLNAME=(git name-rev --name-only HEAD)
-
$env:BRANCHNAME=$env:BRANCHFULLNAME.Split('/')[$env:BRANCHFULLNAME.Split('/').length - 1]
-
$env:BRANCHNAME=$env:BRANCHFULLNAME.Split('/')[$env:BRANCHFULLNAME.Split('/').length - 1]
-
$env:CONTAINERNAME=$env:BRANCHNAME.Split('
_
')[1]
-
$env:CONTAINERNAME=$env:BRANCHNAME.Split('
.
')[1]
-
docker login -u reza.s -p aA123456 repo.marcopacs.com
-
docker login -u reza.s -p aA123456 repo.marcopacs.com
stage
:
build_in_staging
stage
:
build_in_staging
tags
:
tags
:
...
@@ -69,11 +69,11 @@ build_in_staging:
...
@@ -69,11 +69,11 @@ build_in_staging:
-
Set-Variable -Name "envtext1" -Value "CONTAINERNAME=$env:CONTAINERNAME"
-
Set-Variable -Name "envtext1" -Value "CONTAINERNAME=$env:CONTAINERNAME"
-
Add-Content .\.env "$envtext1"
-
Add-Content .\.env "$envtext1"
-
echo y | pscp.exe -batch -l administrator -pw $env:StagingPass ./.env staging.karname.ir:c:/Users/administrator/.env
# save .env in remote server
-
echo y | pscp.exe -batch -l administrator -pw $env:StagingPass ./.env staging.karname.ir:c:/Users/administrator/.env
# save .env in remote server
-
Set-Variable -Name "batchtext" -Value "cd c:/Users/administrator&&docker-compose config&&docker-compose pull app&&docker-compose -p $env:CONTAINERNAME up -d --force-recreate"
-
Add-Content .\command.bat "$batchtext"
-
echo y | plink -batch -ssh administrator@staging.karname.ir -pw $env:StagingPass -m ./command.bat
-
echo y | plink -batch -ssh administrator@staging.karname.ir -pw $env:StagingPass -m ./command.bat
# - ./scripts/command.ps1
# - ./scripts/command.ps1
allow_failure
:
true
allow_failure
:
true
# only:
# - devel-windows
only
:
only
:
-
/^.*staging.*/
-
/^.*staging.*/
...
@@ -90,8 +90,6 @@ build_in_master:
...
@@ -90,8 +90,6 @@ build_in_master:
allow_failure
:
true
allow_failure
:
true
only
:
only
:
-
tags
-
tags
except
:
-
/^(?!master).+@/
# on_build_failure:
# on_build_failure:
# stage: cleanup_build
# stage: cleanup_build
...
...
client/views/Main.vue
View file @
9a12a459
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
<v-app-bar-nav-icon
@
click
.
stop=
"drawer = !drawer"
></v-app-bar-nav-icon>
<v-app-bar-nav-icon
@
click
.
stop=
"drawer = !drawer"
></v-app-bar-nav-icon>
<v-toolbar-title
class=
"red--text"
>
Karname
</v-toolbar-title>
<v-toolbar-title
class=
"red--text"
>
Karname
</v-toolbar-title>
<router-view
name=
"register_patient"
></router-view>
<v-spacer></v-spacer>
<v-spacer></v-spacer>
</v-app-bar>
</v-app-bar>
...
...
docker-compose.yml
View file @
9a12a459
...
@@ -2,7 +2,7 @@ version: "3"
...
@@ -2,7 +2,7 @@ version: "3"
services
:
services
:
app
:
app
:
container_name
:
${CONTAINERNAME}
#karname-app
#
container_name: ${CONTAINERNAME} #karname-app
restart
:
always
restart
:
always
image
:
repo.marcopacs.com/karname/karname-app:${TAG_VERSION}
#"karname-app:${TAG_VERSION}"
image
:
repo.marcopacs.com/karname/karname-app:${TAG_VERSION}
#"karname-app:${TAG_VERSION}"
# ports:
# ports:
...
...
scripts/command-server.bat
View file @
9a12a459
del /f /Q C:\Users\Administrator\setup-x86_64.exe
cd c:/Users/administrator && docker-compose config && docker-compose -p %1 up -d --force-recreate
\ No newline at end of file
\ No newline at end of file
scripts/command.bat
View file @
9a12a459
cd c:/Users/administrator && docker-compose config && docker-compose up -d --force-recreate
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment