I want to run gitlab-ci pipeline to deploy my express.js web app to GAE/SE environment.
When my gitlab-ci pipeline begins and runs gcloud app deploy, gcloud command fails as below:
ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: This deployment has too many files. New versions are limited to 10000 files for this app.
- '@type': type.googleapis.com/google.rpc.BadRequest
  fieldViolations:
  - description: This deployment has too many files. New versions are limited to 10000
      files for this app.
    field: version.deployment.files[...]
I tried to count my files using command find . -type f | wc -l, but it says there are only 3886 files in my repository.
My questions:
- Why GAE/SE server says there're too many files to upload?
 - If I overlook something, is there any means to resolve this? (Or, I have to use flex env?)
 
.gitlab-ci.yml
image: node:8
cache:
  paths:
  - node_modules/
stages:
  - deploy
deploy:production:
  stage: deploy
  environment:
    name: production
    url: `${GAE_URL}`
  before_script:
    - wget https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz
    - tar zxvf google-cloud-sdk.tar.gz && ./google-cloud-sdk/install.sh --usage-reporting=false --path-update=true
    - PATH="google-cloud-sdk/bin:${PATH}"
  script:
    - echo $GAE_KEY_FILE > gae_auth.json
    - ./google-cloud-sdk/bin/gcloud auth activate-service-account --key-file gae_auth.json
    - ./google-cloud-sdk/bin/gcloud app deploy --project=$GAE_PROJECT_ID
  only:
  - dev
.gcloudignore
.git/
node_modules/
*~