Skip to content

Instantly share code, notes, and snippets.

@ptx96
Created January 24, 2024 12:00
Show Gist options
  • Save ptx96/d5b856fe9a7b0b8ee86ae6727823d372 to your computer and use it in GitHub Desktop.
Save ptx96/d5b856fe9a7b0b8ee86ae6727823d372 to your computer and use it in GitHub Desktop.
YAML variables match&override
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"
@ptx96
Copy link
Author

ptx96 commented Jan 24, 2024

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment