Created
January 24, 2024 12:00
-
-
Save ptx96/d5b856fe9a7b0b8ee86ae6727823d372 to your computer and use it in GitHub Desktop.
YAML variables match&override
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
default: | |
image: | |
name: busybox | |
.X: | |
script: test | |
variables: | |
A: foo | |
B: pluto | |
C: bar | |
testNoOverride: | |
extends: .X | |
script: | |
- echo -e "$A\n$B\n$C" | |
testOverride: | |
extends: .X | |
variables: | |
B: pippo | |
script: | |
- echo -e "$A\n$B\n$C" |
Author
ptx96
commented
Jan 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment