Skip to content

Ignore some paths when deploying #10976

Description

@madtilda

What

cubejs-cli deploy should ignore (not push) files at user-specified paths.

Why

This is motivated by the following use-case scenarios:

  • Miscellaneous files in a dirty working directory
  • Dev scripts and test code which are never used at runtime

How

A new command option --ignore will suffice.

cubejs-cli deploy --token=${CUBE_CLOUD_DEPLOY_TOKEN} --ignore "tests"

Alternatives Considered

  • A workaround exists: habitually move deploy-shy files out of the project directory.
  • It would be nice if the command also ignored all paths specified by .gitignore. This is a bigger lift and may be considered a breaking change — build pipelines which deploy from a gitignored directory will no longer work.
  • We could achieve this by introducing a .cubeignore file or some other config file in the project directory. Also a bigger lift than adding an --ignore option. Should be a non-breaking addition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions