Skip to content

Instantly share code, notes, and snippets.

@alevene
Created January 15, 2020 21:37
Show Gist options
  • Select an option

  • Save alevene/38513d0236cf30c04309b543b45be9a5 to your computer and use it in GitHub Desktop.

Select an option

Save alevene/38513d0236cf30c04309b543b45be9a5 to your computer and use it in GitHub Desktop.
Ignore all DAGs except the keepers
#!/usr/bin/env bash
set -o errexit
set -o errtrace
set -o pipefail
set -o nounset
THIS_SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"; readonly THIS_SCRIPT_DIR
THIS_GIT_ROOT="$(cd "$THIS_SCRIPT_DIR" && git rev-parse --show-toplevel)"; readonly THIS_GIT_ROOT
python3 "$THIS_SCRIPT_DIR"/dag_ignore.py "$@" > "$THIS_GIT_ROOT"/.airflowignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment