YAML importat Concepts

 

Mapping List values 

  • Our CI CD Pipeline for Git
  • These double curly braces along with the dollar.
  • This is a format specific to the GitHub actions. 
  • What they are trying to do is, they're trying to refer to and map with the name matrix (define above)
  • And inside this they're trying to look for the node version element.
    • And all node-version values is going to be mentioned in this placeholder value.

 

 

Map Key Value reference

  • Here  nginx_pacakge is try to refer a variable with same name
  • As above we can see above, there is a key with the value as nginx
  • So instead of duplicating these nginx value at multiple times,  they are trying to refer to this key with the help of this format, which is double curly brace.
  • Same as above but without $ sign 

 


Related Question