Skip to content

Applications

Runner Gitlab

Exemple gitlab-pages

pages:
  stage: build
  variables:
    GITLAB_RUNNER__CUSTOM_EXECUTOR_OPENSTACK__CPU_COUNT: 4
  tags: 
  - vm
  variables:
    URL_BASE: "${CI_PAGES_URL}"
  script:
  - curl -fsS https://pkgx.sh | sh
  - useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash
  - pkgx install gitlab-runner
  - gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner
  - gitlab-runner start
  - pkgx pip install mkdocs mkdocs-material mkdocs-material-extensions
  - pkgx python3 -m mkdocs build
  - cp -R media/ site/
  - mv site public
  - ls -alFhR public
  artifacts:
    paths:
    - public
  rules:
    # This ensures that only pushes to the default branch will trigger
    # a pages deploy
    - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH