Skip to content

Move multiple versions FF to beta

Janis Altherr requested to merge 484861-move-multiple-versions-ff-to-beta into master

What does this MR do and why?

This MR moves the pages_multiple_versions_setting Feature flag to beta state, default enables it and updates the documentation

Screenshots or screen recordings

no visual changes

How to set up and validate locally

  1. Set up your GDK to support Runners and Pages
  2. Create a Pages project by creating a new project with the "pages/Plain HTML" template. Make sure to use your user namespace for the project.
  3. Run the Pipeline once for the default branch.
  4. Go to "Deploy > Pages" and check the box near "Use multiple deployments"
  5. Replace the below config in the .gitlab-ci.yml:
image: busybox

pages:
  stage: deploy
  script:
    - echo "Pages accessible through ${CI_PAGES_URL}/${PAGES_PREFIX}"
  variables:
    PAGES_PREFIX: "" # no prefix by default (master)
  pages:
    path_prefix: "$PAGES_PREFIX"
  artifacts:
    paths:
    - public
  rules:
    - if: $CI_COMMIT_BRANCH == "master" # ensure to run on master (with default PAGES_PREFIX)
      variables:
        PAGES_PREFIX: ''
    - if: $CI_PIPELINE_SOURCE == "merge_request_event" # conditionally change the prefix on Merge Requests
      variables:
        PAGES_PREFIX: 'mr$CI_MERGE_REQUEST_IID' # prefix with the mr<iid>, like `mr123`
  1. Create one or more MRs in the project. Ensure each MR's pipeline creates a Pages deployment.

Related to #484861 (closed)

Edited by Janis Altherr

Merge request reports

Loading