You can run gcloud CLI commands from a Cloud Build step, and you can create that step in Workflows using the Cloud Build connector.
Explore further
For detailed documentation that includes this code sample, see the following:
Code sample
YAML
What's next
To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.