pages job should not run in stable brances
pages
uses .rules_prod
, but this job will also be run when image:docs-single
is run.
.rules_prod:
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
- if: '$CI_COMMIT_BRANCH =~ /^\d{1,2}\.\d{1,2}$/'
We need to actually exclude the pages
job when a branch that matches $CI_COMMIT_BRANCH =~ /^\d{1,2}\.\d{1,2}$/
is pushed, otherwise if a stable branch uses pages
to deploy the site, the dropdown shows incorrect info:
Example pipeline https://gitlab.com/gitlab-org/gitlab-docs/pipelines/138771294. We'll need to backport this to 12.10.
Edited by Achilleas Pipinellis