Sign inSign up

dimjones/gitlab-webhook-api

By dimjones

Updated over 1 year ago

Sample gitlab webhook API

Image
API management
0

411

dimjones/gitlab-webhook-api repository overview

GitLab Webhook Listener

This is a simple web API built with Flask to illustrate how to use the GitLab webhook. The API only responds to POST requests on /webhook and logs the received payload.

Endpoints

  • POST /webhook
    Prints "Webhook received!" and logs the JSON payload from the request.

Running the Container

Build your Docker image and run it with the following command:

docker run -d -p 9000:9000 --name gitlab-webhook-listener <your_image_name>

This command starts the container, mapping port 9000 of your host to port 9000 of the container.

Viewing Logs

To continuously follow the logs from the running container, use:

docker logs -f gitlab-webhook-listener

Files

Tag summary

Content type

Image

Digest

sha256:0d3413b81

Size

20.6 MB

Last updated

over 1 year ago

docker pull dimjones/gitlab-webhook-api