<@1072591948499664996> is there a way to output al...
# 🤖|ask-kapa
a
@microscopic-river-74022 is there a way to output all the current outputs.deploymentImageId for every build action in the project.
m
Please stand by @ancient-island-74119 as I search the knowledge base. I normally take about 15 seconds or so. :wave:
---------------------- Yes, you can output all the current
outputs.deploymentImageId
values for every build action in your Garden project by using the
garden get outputs
command, provided you have defined these outputs in your project configuration under the
outputs
key. For example:
Copy code
yaml
apiVersion: garden.io/v1
kind: Project
name: my-project
outputs:
  my-action-image: ${actions.build.my-image.outputs.deployment-image-id}
You can then retrieve all defined outputs (including
deployment-image-id
for your build actions) with:
Copy code
garden get outputs -o json
and further process the output with tools like
jq
if needed. However, Garden does not automatically output all
deploymentImageId
values for every build action unless you explicitly define each one in the
outputs
section of your project config. You would need to add an entry for each build action you want to track. If you want to list all actions and their details (including outputs), you can use:
Copy code
garden get actions --detail -o json
But note, the knowledge sources do not explicitly state that this will include the
outputs.deploymentImageId
directly; you may need to parse the output for the relevant fields or ensure your outputs are defined as shown above for easy extraction [Bonsai-0.13 Project outputs]() [Reference: garden get actions](). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
message has been deleted