I\'m trying to use google cloud build. At one step, I need to get a list of all running compute instances.
- name: gcr.io/cloud-builders/gcloud args: [\'co
In addition to other answers, to do cmd > foo.txt, you need to override the build entrypoint to bash (or sh):
cmd > foo.txt
- name: gcr.io/cloud-builders/gcloud entrypoint: /bin/bash args: ['-c', 'gcloud compute instances list > gce-list.txt']