title: Google App Engine does not deploy two services (seem to be overriding each other)
body: <p>I have a <strong>Django backend</strong> and an <strong>Angular frontend</strong> and i'm trying to deploy both of them to a Google App Engine <strong>Standard</strong> app as two services within the same app.</p>
  
  <p>The directory looks like this:</p>
  
  <pre><code>-backend
  --cloudbuild.yaml
  --app.yaml
  -- ...
  -frontend
  --cloudbuild.yaml
  --app.yaml
  -- ...
  -cloudbuild.yaml
  </code></pre>
  
  <p>The main <code>cloudbuild.yaml</code> goes through each folder and looks for a <code>cloudbuild.yaml</code> file and submits the build:</p>
  
  <pre><code>steps:
  - name: 'gcr.io/cloud-builders/gcloud'
    entrypoint: 'bash'
    args:
    - '-c'
    - |
      for d in */; do
        config="${d}cloudbuild.yaml"
        if [[ ! -f "${config}" ]]; then
          continue
        fi
  
        echo "Building $d ... "
        (
          gcloud builds submit $d --config=${config}
        ) &amp;
      done
      wait
  </code></pre>
  
  <p>When i push the code to my Github repo, they get deployed <strong>successfully</strong>. However, both logs show something like below:</p>
  
  <pre><code>Step #2: Beginning deployment of service [default]...
  Step #2: #============================================================#
  Step #2: #= Uploading 0 files to Google Cloud Storage =#
  Step #2: #============================================================#
  Step #2: File upload done.
  Step #2: Updating service [default]...
  Step #2: ................................done.
  Step #2: Setting traffic split for service [default]...
  Step #2: .....done.
  Step #2: Deployed service [default] to [https://thisapp.appspot.com]
  </code></pre>
  
  <p>So it seems like one is overriding the other as the default service. When I go to the services page, there is only one service which is the default one.</p>
  
  <p>I know that we first have to deploy the default service and then the rest. However i thought since the main <code>cloudbuild.yaml</code> submits the build one by one, then there would be a default service and the second build would create a second service.</p>
  
  <p>The other two <code>cloudbuild.yaml</code> files are as below:</p>
  
  <pre><code>steps:
  
    # Install node packages
    - name: 'gcr.io/cloud-builders/npm'
      args: [ 'install' ]
  
    # Build productive files
    - name: 'gcr.io/cloud-builders/npm'
      args: [ 'run', 'build', '--prod']
  
    # Deploy to google cloud app egnine
    - name: 'gcr.io/cloud-builders/gcloud'
      args: ['app', 'deploy', '--version=prod']
  </code></pre>
  
  <pre><code>steps:
  
    - name: 'python:3.7'                                                                                                                               
      entrypoint: python3                                                               
      args: ['-m', 'pip', 'install', '-t', '.', '-r', 'requirements.txt'] 
  
    - name: 'python:3.7'                                                            
      entrypoint: python3                                                           
      args: ['./manage.py', 'collectstatic', '--noinput']
  
    - name: 'gcr.io/cloud-builders/gcloud'
      args: ['app', 'deploy', '--version=prod']
  </code></pre>
  
  <p>I'd be grateful if you can help me on this.</p>
  
  <p>Thanks</p>