Skip to content
Discussion options

You must be logged in to vote

Hey @falconTwo. Let's start with some debugging. It's often useful to use the spew function when trying to resolve issues like this as it gives a bit more information about what's going on:

    cmds:
-     - cmd: 'echo {{.BUILD_PROFILES}}'
-     - cmd: 'echo {{.profile_config}}'
+     - cmd: echo "{{spew .BUILD_PROFILES}}"
+     - cmd: echo "{{spew .profile_config}}"

The first line outputs your map variable as expected:

(map[string]interface {}) (len=2) {
 (string) (len=7) default: (map[string]interface {}) (len=2) {
  (string) (len=3) env: (string) (len=5) local,
  (string) (len=10) dockerfile: (string) (len=26) path/to/default/Dockerfile
 },
 (string) (len=4) test: (map[string]interface…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@falconTwo
Comment options

Answer selected by falconTwo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants