Skip to main content

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

  1. Install the plugin

    pip install airflow-gitlab-webhook

  2. 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
  3. Configure Gitlab Webook (push event) for the repository

  4. Restart the Airflow Web Server

Endpoints

push
  • Gitlab Push Event

    POST - https://{HOST}:{PORT}/webhooks/gitlab/push

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

airflow_gitlab-webhook-1.0.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

airflow_gitlab_webhook-1.0.0-py2.py3-none-any.whl (9.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file airflow_gitlab-webhook-1.0.0.tar.gz.

File metadata

  • Download URL: airflow_gitlab-webhook-1.0.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for airflow_gitlab-webhook-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ae52c7ca990cc2313ca695b073862171ace40f73732c0b396088d656e3ab9913
MD5 227c70808dac2c516155f0609e670155
BLAKE2b-256 38aba757f739bb68ac38e8e4611b40f6407f0041ee999515498dd02a60f39283

See more details on using hashes here.

File details

Details for the file airflow_gitlab_webhook-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: airflow_gitlab_webhook-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for airflow_gitlab_webhook-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c643305bc1e0113ac8ae90b3177713fd5ab660142ba0e21e8e890da25fe934d2
MD5 067ea60afab66d48a2fb1179da2831e0
BLAKE2b-256 f71aab3efb19f5c9361fa5b3f9872b5493f3751a757a85fce5c0b7de51c2e2cc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page