Apache Airflow Gitlab Webhook integration
Project description
Airflow Gitlab Webhook Plugin
Description
A plugin for Apache Airflow that exposes REST endpoint for Gitlab Webhooks.
System Requirements
- Airflow Versions
- 1.10.2 or newer
Deployment Instructions
-
Install the plugin
pip install airflow-gitlab-webhook
-
Update the airflow.cfg configuration file adding the gitlab_plugin section
[gitlab_plugin] repository_url = http://example.com/mike/diaspora.git token = 62b32508-b1ad-44d2-97d1-80021a8d7576 dag = tutorial (Optional) Configure other repositories repository_url1 = http://example.com/bla.git token1 = my-secret dag1 = git_update
- repository_url = Gitlab repository URL
- token = Optional Secure Token
- dag = DAG to be run when the push even is received
-
Configure Gitlab Webook (push event) for the repository
-
Restart the Airflow Web Server
Endpoints
push
-
Gitlab Push Event
POST - https://{HOST}:{PORT}/webhooks/gitlab/push
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for airflow_gitlab-webhook-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae52c7ca990cc2313ca695b073862171ace40f73732c0b396088d656e3ab9913 |
|
MD5 | 227c70808dac2c516155f0609e670155 |
|
BLAKE2b-256 | 38aba757f739bb68ac38e8e4611b40f6407f0041ee999515498dd02a60f39283 |
Close
Hashes for airflow_gitlab_webhook-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c643305bc1e0113ac8ae90b3177713fd5ab660142ba0e21e8e890da25fe934d2 |
|
MD5 | 067ea60afab66d48a2fb1179da2831e0 |
|
BLAKE2b-256 | f71aab3efb19f5c9361fa5b3f9872b5493f3751a757a85fce5c0b7de51c2e2cc |