diff --git a/.ci/deploy.sh b/.ci/deploy.sh new file mode 100644 index 0000000000000000000000000000000000000000..725c1f6b9d49679dce0977c968ea7a65a4826400 --- /dev/null +++ b/.ci/deploy.sh @@ -0,0 +1,28 @@ +mkdir -p public +artefact="latest" + +# loop through all the branches +for branch in $(git for-each-ref --format='%(refname:strip=3)' refs/remotes); do + echo $branch; + if [[ $branch == "master" ]]; then + artefact="stable"; + elif [[ $branch == "develop" ]]; then + artefact="latest"; + else + artefact="unstable"; + fi + echo $artefact; + git checkout -f $branch + git reset --hard $branch + + # build the website + bundle exec jekyll build --baseurl="labCards/$artefact" -d "public/$artefact" +done + +# checkout the current branch +echo $CI_COMMIT_REF_NAME +git checkout -f $CI_COMMIT_REF_NAME +git reset --hard origin/$CI_COMMIT_REF_NAME + +# set the auto redirection +cp .ci/.autoRedirect public/index.html diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..335b9986db702c06c3e5bb786ead3aad82a70a5e --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +image: ruby:2.5 + +variables: + JEKYLL_ENV: production + +before_script: + - bundle install && bundle update + +pages: + stage: deploy + only: + - develop + - master + script: + - bash .ci/deploy.sh + + artifacts: + paths: + - public diff --git a/index.md b/index.md new file mode 100644 index 0000000000000000000000000000000000000000..8dfd06004073d39d03023cf29dd38fccdcbd0696 --- /dev/null +++ b/index.md @@ -0,0 +1,13 @@ +--- +layout: default +title: Home +order: 1 +--- + +# Research Data Management + +Bioinformatics Core assists Luxembourg Centre for Systems Biomedicine [LCSB](https://www.uni.lu/lcsb) researchers with the organization, management, and curation of research data through its R3 initiative. This page is an index for lab cards that are intended to provide practical guidance in implementing Data Management, Data Protection and IT setup. + +## Current LabCards + + * [Exchange data with collaborators](./external/exchange-channels/)