title: How to deploy only an affected nx service to GCP APP Engine
body: <p>Given that I have an NX application with multiple services, and I want to do continuous deployment of only affected service/s to App Engine, how can I point to a given <strong>service.yaml</strong> (or multiple) within the common <strong>cloudbuild.yaml</strong> for the project?<br />
  Each service in the monorepo has its own service.yaml as describe <a href="https://cloud.google.com/appengine/docs/standard/nodejs/configuration-files#examples" rel="nofollow noreferrer">here</a><br />
  ex:
  My <strong>cloudbuild.yaml</strong> looks like:</p>
  <pre><code>steps:
  - name: node
    entrypoint: npm
    args: ['install']
  - name: node
    entrypoint: npm
    args: ['run', 'affected:build']
  - name: 'gcr.io/cloud-builders/gcloud'
    args: ['app', 'deploy', 'dist/apps/express-app-1/service.yaml']
    timeout: '1600s'
  </code></pre>
  <p>In my code I am pointing to specific service which is hard-coded but I need it to depend on <code>nx affected:build</code>.</p>
  <p>Is there a way to do that, and to achieve continuous deployment with <code>nx build:affected</code> and Cloud Build triggers?</p>