Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
howto-cards
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marie Fossepre
howto-cards
Commits
c489645e
Commit
c489645e
authored
4 years ago
by
Jacek Lebioda
Browse files
Options
Downloads
Patches
Plain Diff
feat: corrected paths
parent
62c2ae21
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+5
-5
5 additions, 5 deletions
.gitlab-ci.yml
with
5 additions
and
5 deletions
.gitlab-ci.yml
+
5
−
5
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 {} +;"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment