phoenix gitlab monitor
1.4K

With docker
docker run --rm --name gitlab-monitor -p 0.0.0.0:4000:4000 -d juanpabloaj/phoenix_gitlab_monitor:latest
Build image
docker build -t juanpabloaj/phoenix_gitlab_monitor:latest .
Or to start your Phoenix server:
mix deps.getcd assets && npm installmix phx.serverNow you can visit localhost:4000 from your browser.
Send a pipeline hook with curl
curl -H "X-Gitlab-Event: Pipeline Hook" \
-H "content-type:application/json" -d @test/fixtures/pipeline_success.json \
"http://localhost:4000/api"
In your gitlab repository create a webhook: Settings -> Integrations -> Add webhook.
The url field is your host, complete it with
http://yourhost:4000/api
And in the checkbox select the pipeline events.
Learn more about gitlab webhook gitlab documentation
https://gitlab.com/help/user/project/integrations/webhooks
http://localhost:4000/api?branches[]=master&branches[]=develop
Content type
Image
Digest
Size
141 MB
Last updated
over 6 years ago
docker pull juanpabloaj/phoenix_gitlab_monitor