diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-05 03:08:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-05 03:08:46 +0300 |
commit | 35850d3d1643a9e2c5328f45b8a9026ac3d86e35 (patch) | |
tree | 20e1177d60c77b10d7746be624f39d685c1c63f2 /doc/ci | |
parent | f4056ff4474daf3da66ceaf4473306b0c4652897 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/ci')
-rw-r--r-- | doc/ci/yaml/index.md | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/doc/ci/yaml/index.md b/doc/ci/yaml/index.md index 811270d870c..dc1b33feab0 100644 --- a/doc/ci/yaml/index.md +++ b/doc/ci/yaml/index.md @@ -3161,6 +3161,41 @@ This example uses [Eleventy](https://www.11ty.dev) to generate a static website output the generated HTML files into a the `dist/` directory. This directory is exported as an artifact and published with GitLab Pages. +#### `pages:pages.path_prefix` **(PREMIUM ALL EXPERIMENT)** + +> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/129534) in GitLab 16.7 as an [Experiment](../../policy/experiment-beta-support.md) [with a flag](../../user/feature_flags.md) named `pages_multiple_versions_setting`, disabled by default. + +FLAG: +On self-managed GitLab, by default this feature is not available. To make it available, +an administrator can [enable the feature flag](../../administration/feature_flags.md) named +`pages_multiple_versions_setting`. On GitLab.com, this feature is not available. This feature is not ready for production use. + +Use `pages.path_prefix` to configure a path prefix for [multiple deployments](../../user/project/pages/index.md#create-multiple-deployments) of GitLab Pages. + +**Keyword type**: Job keyword. You can use it only as part of a `pages` job. + +**Possible inputs**: + +- A string with valid [URL characters](https://www.ietf.org/rfc/rfc1738.txt). +- [CI/CD variables](../variables/where_variables_can_be_used.md#gitlab-ciyml-file). +- A combination of both. + +**Example of `pages.path_prefix`**: + +```yaml +pages: + stage: deploy + script: + - echo "Pages accessible through ${CI_PAGES_URL}/${CI_COMMIT_BRANCH}" + pages: + path_prefix: "$CI_COMMIT_BRANCH" + artifacts: + paths: + - public +``` + +In this example, a different pages deployment is created for each branch. + ### `parallel` > [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/336576) in GitLab 15.9, the maximum value for `parallel` is increased from 50 to 200. |