Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Tecnonucleous
Tecnonucleous Bot
Commits
26aa4efc
Commit
26aa4efc
authored
Oct 31, 2019
by
Daniel Pérez Fernández
🕶
Browse files
Minor Fix
parent
643f7e28
Pipeline
#92953262
passed with stage
in 1 minute and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
.gitlab-ci.yml
.gitlab-ci.yml
+2
-1
No files found.
.gitlab-ci.yml
View file @
26aa4efc
...
...
@@ -9,6 +9,7 @@ variables:
DEPLOY_KEY
:
$DEPLOY_KEY
FILE_CONFIG_BOT
:
$FILE_CONFIG_BOT
CP_FILE_CONFIG_BOT
:
$CP_FILE_CONFIG_BOT
BOT_INDEX
:
$BOT_INDEX
stages
:
-
deploy
...
...
@@ -29,4 +30,4 @@ deploy:
-
'
[[
-f
/.dockerenv
]]
&&
echo
-e
"Host
*\n\tStrictHostKeyChecking
no\n\n"
>
~/.ssh/config'
script
:
-
ssh -o StrictHostKeyChecking=no "$SSH_USERNAME"@"$SERVER_IP" -p "$SERVER_PORT" "cd ${WORK_DIR}; pm2 stop openbot; rm -rf open-telegram-bot-nodejs; git init; git clone -b ${BRANCH} ${REPO}; cp ${FILE_CONFIG_BOT} ${CP_FILE_CONFIG_BOT}; npm install; pm2 restart openbot"
\ No newline at end of file
-
ssh -o StrictHostKeyChecking=no "$SSH_USERNAME"@"$SERVER_IP" -p "$SERVER_PORT" "cd ${WORK_DIR}; pm2 stop openbot; rm -rf open-telegram-bot-nodejs; git init; git clone -b ${BRANCH} ${REPO}; cp ${FILE_CONFIG_BOT} ${CP_FILE_CONFIG_BOT}; cd ${BOT_INDEX}; npm install; pm2 restart openbot"
\ 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