mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 04:03:34 -05:00
Merge pull request #1044 from sharelatex/ja-merge-modules
Merge modules into web monorepo GitOrigin-RevId: 742df73bff72010b01c93e20759a489969b04ed3
This commit is contained in:
parent
d75d8ee079
commit
eecbbc045d
4 changed files with 9 additions and 35 deletions
6
services/web/Jenkinsfile
vendored
6
services/web/Jenkinsfile
vendored
|
@ -32,11 +32,9 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Install modules') {
|
stage('Copy external pages') {
|
||||||
steps {
|
steps {
|
||||||
sshagent (credentials: ['GIT_DEPLOY_KEY']) {
|
sh 'bin/copy_external_pages'
|
||||||
sh 'bin/install_modules'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
6
services/web/bin/copy_external_pages
Executable file
6
services/web/bin/copy_external_pages
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Branding
|
||||||
|
mv app/views/external/robots.txt public/robots.txt
|
||||||
|
mv app/views/external/googlebdb0f8f7f4a17241.html public/googlebdb0f8f7f4a17241.html
|
|
@ -1,30 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# Branding
|
|
||||||
rm -rf public/brand app/views/external
|
|
||||||
git clone -b master git@github.com:sharelatex/brand-sharelatex public/brand
|
|
||||||
git clone -b master git@github.com:sharelatex/external-pages-sharelatex app/views/external
|
|
||||||
mv app/views/external/robots.txt public/robots.txt
|
|
||||||
mv app/views/external/googlebdb0f8f7f4a17241.html public/googlebdb0f8f7f4a17241.html
|
|
||||||
|
|
||||||
# Web Modules
|
|
||||||
rm -rf modules
|
|
||||||
BRANCH_NAME=${BRANCH_NAME:="$(git rev-parse --abbrev-ref HEAD)-nope"}
|
|
||||||
function install_module {
|
|
||||||
echo "Cloning $1 from $BRANCH_NAME branch"
|
|
||||||
git clone -b $BRANCH_NAME $1 $2 || {
|
|
||||||
echo "Cloning from $BRANCH_NAME failed - it likely doesn't exist. Using master";
|
|
||||||
git clone -b master $1 $2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
install_module git@github.com:sharelatex/web-sharelatex-modules modules
|
|
||||||
install_module git@github.com:sharelatex/admin-panel modules/admin-panel
|
|
||||||
install_module git@github.com:sharelatex/tpr-webmodule.git modules/tpr-webmodule
|
|
||||||
install_module git@github.com:sharelatex/templates-webmodule.git modules/templates
|
|
||||||
install_module git@github.com:sharelatex/track-changes-web-module.git modules/track-changes
|
|
||||||
install_module git@github.com:sharelatex/overleaf-integration-web-module.git modules/overleaf-integration
|
|
||||||
install_module git@github.com:sharelatex/overleaf-account-merge.git modules/overleaf-account-merge
|
|
||||||
install_module git@github.com:sharelatex/references-search.git modules/references-search
|
|
||||||
install_module git@github.com:sharelatex/learn-wiki-web-module.git modules/learn-wiki
|
|
||||||
install_module git@github.com:sharelatex/metrics-web-module.git modules/metrics
|
|
|
@ -10,7 +10,7 @@ core.workflow(
|
||||||
push = "master"
|
push = "master"
|
||||||
),
|
),
|
||||||
# Exclude the modules directory
|
# Exclude the modules directory
|
||||||
origin_files = glob(["**"], exclude = ["modules/**"]),
|
origin_files = glob(["**"], exclude = ["modules/**", "app/views/external/**", "public/brand/**"]),
|
||||||
mode="ITERATIVE",
|
mode="ITERATIVE",
|
||||||
migrate_noop_changes=True,
|
migrate_noop_changes=True,
|
||||||
authoring = authoring.pass_thru("Copybot <copybot@overleaf.com>")
|
authoring = authoring.pass_thru("Copybot <copybot@overleaf.com>")
|
||||||
|
|
Loading…
Reference in a new issue