Adding alias and anchor in yml file #1518
Answered
by
mikefarah
kelly-scalapay
asked this question in
Q&A
-
Im unable to have the & and * characters appear as not in quote, is there a way I can do the below without it wrapping the values for the anchor and alias in quotes for a bitbucket-pipelines.yml file.
and then the below:
Id like it to look like the below:
but i get the below:
|
Beta Was this translation helpful? Give feedback.
Answered by
mikefarah
Jan 12, 2023
Replies: 1 comment 6 replies
-
Yep - you need to use the anchor and alias operators, documented here: https://mikefarah.gitbook.io/yq/operators/anchor-and-alias-operators |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
kelly-scalapay
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yep - you need to use the anchor and alias operators, documented here: https://mikefarah.gitbook.io/yq/operators/anchor-and-alias-operators