Is this the correct way to write if..else statement in cloudbuild.yaml file?
问题 I am trying to deploy a cloud function using cloudbuild.yaml. It works fine if I don't use any conditional statement. I am facing an error when I execute my cloudbuild.yaml file with if conditional statement. What is the correct way to write it. Below is my code: steps: - name: 'gcr.io/cloud-builders/gcloud' id: deploy args: - '-c' - 'if [ $BRANCH_NAME != "xoxoxoxox" ] then [ 'functions', 'deploy', 'groups', '--region=us-central1', '--source=.', '--trigger-http', '--runtime=nodejs8', '--entry