title: Google Cloud Build Trigger Doesn't Work Properly
body: <p>I will start off by describing the architecture of my code. I've written code in a directory that's responsible for creating a Cloud Run container. I created a Cloud build trigger that detects a push to the project, and uses a cloudbuild.yaml file to build the Cloud Run container and deploy the code. However, when I push my changes, nothing happens: there are no messages in the history tab showing an error or status message. I've double checked to make sure the directory and file names were put in correctly to the trigger.</p>
  <p>Here are the contents of my yaml file:</p>
  <pre class="lang-yaml prettyprint-override"><code>steps:
    - name: 'gcr.io/cloud-builders/docker'
      args: ['build', '-t', 'gcr.io/$PROJECT_ID/combined', '.']
      id: 'building dockerfile'
      dir: 'name_of_directory'
    - name: 'gcr.io/cloud-builders/docker'
      args: ['push', 'gcr.io/$PROJECT_ID/combined']
      id: 'pushing the new image'
      dir: 'name_of_directory'
    - name: 'gcr.io/cloud-builders/gcloud'
      args: ['run', 'deploy', 'name_of_directory', '--image=gcr.io/$PROJECT_ID/combined', '--platform=managed', '--region=us-central1', '--memory=4096M', '--service-account=cloud-run-pubsub-invoker@$PROJECT_ID.iam.gserviceaccount.com']
      id: 'deploying combined service'
      dir: 'name_of_directory'
  </code></pre>
  <p>The pipeline is fired up if a commit is made to the branch. In the 'included files' input, I have added the main file in the directory to be run. I have also included the .yaml file. Here is a screenshot of the trigger. I can't show too much info, as it's not a personal repo.</p>
  <p><a href="https://i.stack.imgur.com/W4dvV.jpg" rel="nofollow noreferrer">Screenshot of Google Cloud Build trigger</a></p>
  <p>I tried running the trigger manually on the triggers page, and got this error: <code>Failed to trigger build</code>. This doesn't help me much, because it's not specific enough.</p>
  <p>Has this been encountered before? Or are there any common mistakes that I could check for?</p>