Skip to content

Be able to use parallel:matrix with rules

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Main point is to be able to use parallel:matrix with rules like:

update-job-prod:
  stage: build
  script:
     - echo hello world
  tags:
    - $tags
  rules:
    - if: $CI_COMMIT_REF_NAME =~ "/^ver.*$/"
      parallel:
      matrix:
        - tags: [stage-1, stage-2]
     - if: $CI_COMMIT_REF_NAME == "master"
       parallel:
       matrix:
        - tags: [prod-1, prod-2, prod-3]

cause for now the only way to do so as i see - write a base job and use extend with additional rules and matrix for each env

Edited by 🤖 GitLab Bot 🤖