Hey there, I’ve run into a problem with my GitLab pages build.
- The pipeline is going through,
- Artifacts are available in the
public
directory, - The gitlab pages is available on
*.gitlab.io
domain, - The
Pages
setting is not available inSettings
.
Because the setting is not available, I cannot set my custom domain.
Here is the gitlab-ci.yml
file.
image: ruby:2.6
variables:
JEKYLL_ENV: production
LC_ALL: C.UTF-8
before_script:
- gem install bundler
- bundle install
test:
stage: test
script:
- bundle exec jekyll build -d test
artifacts:
paths:
- test
except:
variables:
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
pages:
stage: deploy
script:
- bundle exec jekyll build -d public
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
environment: production