Skip to content

Instantly share code, notes, and snippets.

@lmingzhi
lmingzhi / git_sync.py
Created August 23, 2021 08:39 — forked from jbielick/git_sync.py
an Apache Airflow DAG to sync a git repository to the google cloud storage bucket for your Composer environment
from datetime import datetime, timedelta
from airflow.models import Variable
from airflow import DAG
from airflow.operators.bash_operator import BashOperator
private_key = Variable.get("git_deploy_private_key_secret")
repo_url = Variable.get("git_remote_url")
default_args = {