Gitlab-CI

The Gitlab-ci plugin allows you to trigger Gitlab-ci job automatically. The below pipeline configuration demonstrates simple usage:

- name: trigger gitlab job
  image: appleboy/drone-gitlab-ci
  settings:
    host: https://gitlab.com
    token: xxxxxxxxxx
    ref: master
    id: gitlab-project-id

Example configuration with debug mode:

  - name: trigger gitlab job
    image: appleboy/drone-gitlab-ci
    settings:
      host: https://gitlab.com
      token: xxxxxxxxxx
      ref: master
      id: gitlab-project-id
+     debug: true

Example configuration using credentials from secrets:

  - name: trigger gitlab job
    image: appleboy/drone-gitlab-ci
    settings:
      host: https://gitlab.com
+     token:
+       from_secret: gitlab_token
      id: gitlab-project-id

Parameter Reference

host
gitlab-ci server base url.
token
gitlab-ci user token
ref
valid refs are only the branches and tags
id
gitlab-ci project id
debug
enable debug mode