Hey,

I'm having trouble setting up my yaml files for google app engine. The 
configuration works correctly when my app.yaml file is in the root of the 
project but if it is within a subdirectory it does not build the correct 
source. I suspect I need to set the `dir:` option in the build config, but 
I have tried multiple variations and I can't get it to work.

Working file structure, deployed app is ~3mb in size.

```
src
deployment
└── staging
    └── build.yaml
app.staging.yaml


# build.yaml
steps:
- name: node:12
  entrypoint: yarn
- name: node:12
  entrypoint: yarn
  args: ['build']
- name: "gcr.io/cloud-builders/gcloud"
  args: ["app", "deploy", "app.staging.yaml"]
timeout: "1800s"
```

Not working file structure, deployed app is ~1kb in size.

```
src
deployment
└── staging
    └── build.yaml
    └── app.yaml


# build.yaml
steps:
- name: node:12
  entrypoint: yarn
- name: node:12
  entrypoint: yarn
  args: ['build']
- name: "gcr.io/cloud-builders/gcloud"
  args: ["app", "deploy", "deployment/staging/app.yaml"]
timeout: "1800s"
```

In both scenarios I am kicking off the deployment with:
`gcloud builds submit --config deployment/staging/build.yaml`

What should my `dir:` be set to in the build.yaml steps so that the build 
step knows to build from root? Is there any way to debug this locally 
without having to upload the source every time?

Thanks!
A

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/612e4533-0dd8-42fb-91b4-ea9a58b7f563%40googlegroups.com.
  • [google-appengine] ... 'Alex Fox' via Google App Engine
    • [google-appeng... 'Olu' via Google App Engine
      • [google-ap... 'Alex Fox' via Google App Engine
        • [googl... 'David (Cloud Platform Support)' via Google App Engine
          • [g... 'Alex Fox' via Google App Engine
            • ... 'David (Cloud Platform Support)' via Google App Engine

Reply via email to