Commit fd187fee authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'JonstonChan-migration-branch-filter-regex-docs' into 'master'

Docs: add regex branch filter to example

See merge request gitlab-org/gitlab!68917
parents 83ab4e9b cd7b6c67
......@@ -216,12 +216,12 @@ jobs:
Example of the same workflow using `rules` in GitLab CI/CD:
```yaml
deploy_prod:
deploy:
stage: deploy
script:
- echo "Deploy to production server"
- echo "Deploy job"
rules:
- if: '$CI_COMMIT_BRANCH == "main"'
- if: '$CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH =~ /^rc-/'
```
### Caching
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment