Skip to content

adk deploy cloud_run does not respect .gitignore or .gcloudignore #4183

@stevewalker-de

Description

@stevewalker-de

When running the adk deploy (to cloud_run) command, the process is copying every file in the source directory, regardless of the presence of a .gitignore or .gcloudignore file.

To Reproduce

  1. Load ADK project in vs code
  2. Add .gitignore (or .gcloudignore) to exclude system/temp/other files
  3. Run adk deploy cloud_run ...
  4. Console message = 'INFO: Not using ignore file.'

Expected behavior
The process respects the .gitignore file

Desktop (please complete the following information):

  • OS: macOS
  • Python version 12.1
  • ADK Version: 1.22.1

This is a major pain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    core[Component] This issue is related to the core interface and implementation

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions