Last active
June 21, 2022 13:18
-
-
Save SamStudio8/8a2176eaed05a803c42bf21f212eae6b to your computer and use it in GitHub Desktop.
job with variable profiles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Nicer syntax but leads to ugly job names, | |
# and doesn't work when variables strings are long | |
# See https://gitlab.com/gitlab-org/gitlab/-/issues/362262 | |
my-job: | |
extends: base-job | |
parallel: | |
matrix: | |
- OWLS: 1 | |
CATS: 0 | |
- OWLS: 0 | |
CATS: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my-job: | |
extends: base-job | |
parallel: | |
matrix: | |
- MATRIX_NAME: ["hoot", "meow"] | |
rules: | |
- if: $MATRIX_NAME == "hoot" | |
variables: | |
OWLS: 1 | |
CATS: 0 | |
- if: $MATRIX_NAME == "meow" | |
variables: | |
OWLS: 0 | |
CATS: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment