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 service.yaml (or multiple) within the common cloudbuild.yaml for the project?
Each service in the monorepo has its own service.yaml as describe here
ex:
My cloudbuild.yaml looks like:
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'
In my code I am pointing to specific service which is hard-coded but I need it to depend on nx affected:build.
Is there a way to do that, and to achieve continuous deployment with nx build:affected and Cloud Build triggers?