Fork me on GitHub

Herr Knedel/Synology-Nas: Setting up Gitlab Triggers

Created Sun, 16 Feb 2020 00:00:00 +0000 Modified Mon, 28 Mar 2022 18:27:34 +0000 Difficulty level: Can be done by anyone

64 Words

In order to trigger a Gitlab pipeline automatically, a so-called trigger must be created. You can create as many triggers as you want in the project settings.

These triggers look like this. Of course, the (placeholders) must be replaced.
x
+
Terminal

$ curl -X POST -F token=(TOKEN) -F ref=(BRANCH) http://(ip):(port)/api/v4/projects/(project-id)/trigger/pipeline

This curl call can be entered into the Synology task scheduler, Done!