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
43d5b61f
Commit
43d5b61f
authored
5 years ago
by
Reza Sahebgharan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(update gitlab ci): update gitlabci
parent
a41f674d
Pipeline
#920
passed with stage
in 35 minutes and 42 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
.gitlab-ci.yml
.gitlab-ci.yml
+3
-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 @
43d5b61f
...
...
@@ -69,7 +69,9 @@ build_in_staging:
-
Set-Variable -Name "envtext1" -Value "CONTAINERNAME=$env:CONTAINERNAME"
-
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 | plink -batch -ssh administrator@staging.karname.ir -pw $env:StagingPass -m ./command.bat $env:CONTAINERNAME
-
Set-Variable -Name "batchtext" -Value "cd c:/Users/administrator&&docker-compose config&&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
# - ./scripts/command.ps1
allow_failure
:
true
only
:
...
...
This diff is collapsed.
Click to expand it.
scripts/command-server.bat
View file @
43d5b61f
del /f /Q C:\Users\Administrator\setup-x86_64.exe
\ No newline at end of file
cd c:/Users/administrator && docker-compose config && docker-compose -p %1 up -d --force-recreate
\ No newline at end of file
This diff is collapsed.
Click to expand it.
scripts/command.bat
View file @
43d5b61f
cd c:/Users/administrator && docker-compose config && docker-compose up -d --force-recreate -p %1
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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