Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
R3
r3-pages
Commits
09c91536
Commit
09c91536
authored
Jan 15, 2020
by
Jacek Lebioda
Browse files
fix(ci): corrected path names in VM deployment
parent
6e95da4a
Pipeline
#19347
passed with stages
in 1 minute and 12 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
09c91536
...
@@ -31,6 +31,6 @@ Deploy to production:
...
@@ -31,6 +31,6 @@ Deploy to production:
-
chmod 644 ~/.ssh/known_hosts
-
chmod 644 ~/.ssh/known_hosts
script
:
script
:
# don't forget to create ~/web/latest folder manually in the initial configuration on the VM!
# don't forget to create ~/web/latest folder manually in the initial configuration on the VM!
-
ssh -p $SSHPORT $SSHCONNECT "mkdir -p ~/web/
we
b_$CI_JOB_ID"
-
ssh -p $SSHPORT $SSHCONNECT "mkdir -p ~/web/
r3la
b_$CI_JOB_ID"
-
scp -P $SSHPORT -r build/* $SSHCONNECT:~/web/
we
b_$CI_JOB_ID
-
scp -P $SSHPORT -r build/* $SSHCONNECT:~/web/
r3la
b_$CI_JOB_ID
-
ssh -p $SSHPORT $SSHCONNECT "cd ~/web/latest && ln -fs ../
we
b_$CI_JOB_ID/* . && cd .. && find . -type d -not -newermt '-1 minutes' -exec rm -rf {} +;"
-
ssh -p $SSHPORT $SSHCONNECT "cd ~/web/latest && ln -fs ../
r3la
b_$CI_JOB_ID/* . && cd .. && find . -type d
-name 'r3lab*' -not -newermt '-1 minutes' -exec rm -rf {} + && find . -type d -name 'latest*'
-not -newermt '-1 minutes' -exec rm -rf {} +;"
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