Skip to content

Instantly share code, notes, and snippets.

@douglasmiranda
Created November 26, 2018 22:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douglasmiranda/bb5b72cc5cc11d2d8e0c1a8ab66342fe to your computer and use it in GitHub Desktop.
Save douglasmiranda/bb5b72cc5cc11d2d8e0c1a8ab66342fe to your computer and use it in GitHub Desktop.
Status: how Drone deals with monorepo; dir/file changed conditions

Well there's no builtin way of doing.

The problem is:

We need a way of skipping steps, or conditional pipelines that are triggered when some dir/* files.* were changed since last commit.

Useful if you maintain a:

  • Monorepo
  • Repo of Dockerfiles (or whatever build files)
  • In this issue you can see the use cases: harness/gitness#1021

The decision so far: harness/gitness#1021 (comment)

There's some effort on creating a plugin to deal with this situation: https://github.com/fbcbarbosa/drone-changeset/

Related links:

@jamesonwilliams
Copy link

As of October 29th, 2021, all of the GitHub links above are broken. 😢

@d3r0
Copy link

d3r0 commented Dec 5, 2022

The link to the issue still works, which may still be open, but the developers mentioned some solutions in the last comment.
harness/gitness#1021 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment