See this example and this example
To deploy the files to the JSC GitLab server, the following steps have to be done:
.gitlab-ci.yml
Creating and pushing the following file will use the GitLab Continious Integration feature to generate the html files with Jekyll and deploy them on the server. The script is executed on a shared docker runner width the tag “pages”.
pages:
tags:
- public-docker
image: ruby:2.3
script:
- bundle install
- bundle exec jekyll build --destination ./public
artifacts:
paths:
- public