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
howto-cards
Commits
c489645e
Commit
c489645e
authored
Mar 27, 2020
by
Jacek Lebioda
Browse files
feat: corrected paths
parent
62c2ae21
Pipeline
#23509
passed with stages
in 1 minute and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
c489645e
...
...
@@ -9,8 +9,8 @@ stages:
# !!!!!!! README !!!!!
# We are in the transition period - and the website is deployed two times - to gitlab pages and to a separate VM
# In order to migrate to a new deployment:
# 1) remove "Old deployment section
"
- build_pages, generate the search index and pages tasks
# 2) rename "new pages" to "pages" in the new deployment section, and "new_public" to "public"
# 1) remove "Old deployment
"
section - build_pages, generate the search index and pages tasks
# 2) rename "new pages" to "pages" in the new deployment section, and "new_public" to "public"
; you might also rename directories (skip "new" part)
# 3) remove ".ci/deploy.sh", ".ci/build_indices.sh"
...
...
@@ -132,7 +132,7 @@ deploy to production:
-
if
:
'
$CI_COMMIT_BRANCH
==
"master"
&&
$CI_PROJECT_PATH
==
"R3/howto-cards"'
-
if
:
'
$CI_COMMIT_BRANCH
==
"16-deploy-to-staticpages-vm"'
script
:
-
ssh -p $SSHPORT $SSHCONNECT "mkdir -p ~/
sources/public/
$CI_COMMIT_BRANCH/
$CI_JOB_ID ~/master/public ~/develop/public
~/$CI_COMMIT_BRANCH/public"
-
scp -P $SSHPORT -r new_processed_build/* $SSHCONNECT:~/
sources/public/
$CI_COMMIT_BRANCH/$CI_JOB_ID
-
ssh -p $SSHPORT $SSHCONNECT "cd ~/$CI_COMMIT_BRANCH/public && ln -fs
~
/sources/public/$CI_
COMMIT_BRANCH/$CI_
JOB_ID/* . && cd ~/
sources/public/
$CI_COMMIT_BRANCH && find . -type d -not -newermt '-1 minutes' -exec rm -rf {} +;"
-
ssh -p $SSHPORT $SSHCONNECT "mkdir -p ~/$CI_COMMIT_BRANCH/
sources/public/$CI_JOB_ID
~/$CI_COMMIT_BRANCH/public"
-
scp -P $SSHPORT -r new_processed_build/* $SSHCONNECT:~/$CI_COMMIT_BRANCH/
sources/public/
$CI_JOB_ID
-
ssh -p $SSHPORT $SSHCONNECT "cd ~/$CI_COMMIT_BRANCH/public && ln -fs
..
/sources/public/$CI_JOB_ID/* . && cd ~/$CI_COMMIT_BRANCH
/sources/public/
&& find . -type d -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