Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port GitHub Pages to GitLab #16

Open
cassgvp opened this issue Oct 13, 2020 · 1 comment
Open

Port GitHub Pages to GitLab #16

cassgvp opened this issue Oct 13, 2020 · 1 comment

Comments

@cassgvp
Copy link
Owner

cassgvp commented Oct 13, 2020

We can now host Pages style rendering on GitLab!

From Duncan Mortimer:

Tempoarily http://pages.fmrib.ox.ac.uk/namespace/project will serve the pages generated for project in namespace, e.g. /fsl/fsl_sub will serve the content from the fsl/fsl_sub project. I intend to serve this from https://open.win.ox.ac.uk/pages/namespace/project eventually.

At present the following is required:

_config.yml:
                baseurl: “/namespace”
.gitlab-ci.yml:
image: ruby:2.7
pages:
  script:
    - gem install bundler
    - bundle install
    - bundle exec jekyll build -d public
  tags:
    - docker
  artifacts:
    paths:
      - public

Gemfile:
source "https://rubygems.org"

gem "jekyll"

index.html:
Templated html

I believe the baseurl will continue to be required, but until I’ve got the proxy sorted I can’t be 100% what form that will take.

@cassgvp
Copy link
Owner Author

cassgvp commented Nov 11, 2020

Tagging @mattsouth and @scratchings. Matt has offered to have a look into this if time allows over the next few months.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant