All Projects → appleboy → drone-gitlab-ci

appleboy / drone-gitlab-ci

Licence: MIT license
Drone plugin for trigger gitlab-ci jobs.

Programming Languages

go
31211 projects - #10 most used programming language
Jsonnet
166 projects
Makefile
30231 projects

Projects that are alternatives of or similar to drone-gitlab-ci

drone-facebook
Drone plugin for sending Facebook notifications
Stars: ✭ 15 (-16.67%)
Mutual labels:  drone-plugin, drone-ci
drone-discord
Drone plugin for sending message to Discord channel using Webhook
Stars: ✭ 34 (+88.89%)
Mutual labels:  drone-plugin, drone-ci
jira-trigger-plugin
Triggers a build when a certain condition is matched in JIRA
Stars: ✭ 112 (+522.22%)
Mutual labels:  trigger
drone-git-push
Drone plugin for deploying code using git push
Stars: ✭ 49 (+172.22%)
Mutual labels:  drone-plugin
eudaq
EUDAQ Data Acquisition Framework
Stars: ✭ 22 (+22.22%)
Mutual labels:  trigger
dohq-ai-best-practices
Внедрение и эксплуатация PT Application Inspector. Подробнее: https://habr.com/ru/company/pt/blog/557142/
Stars: ✭ 22 (+22.22%)
Mutual labels:  gitlab-ci
drone-jenkins
Drone plugin for trigger Jenkins jobs.
Stars: ✭ 35 (+94.44%)
Mutual labels:  drone-plugin
mysqlclient
the mysqlclient Docker image (based on python:3.8.5-alpine3.12) https://github.com/PyMySQL/mysqlclient-python
Stars: ✭ 20 (+11.11%)
Mutual labels:  gitlab-ci
bitbucket-push-and-pull-request-plugin
Plugin for Jenkins v2.138.2 or later, that triggers job builds on Bitbucket's push and pull request events.
Stars: ✭ 47 (+161.11%)
Mutual labels:  trigger
ship
A toolkit for makers to ship better products faster 🚀
Stars: ✭ 68 (+277.78%)
Mutual labels:  drone-ci
react-trigger-change
Trigger React's synthetic change events on input, textarea and select elements
Stars: ✭ 63 (+250%)
Mutual labels:  trigger
gitlab-ci-runner-marathon
A customized Docker image for running scalable GitLab CI runners on Marathon
Stars: ✭ 14 (-22.22%)
Mutual labels:  gitlab-ci
up
UP - Ultimate Provisioner CLI
Stars: ✭ 43 (+138.89%)
Mutual labels:  drone-ci
gitlab-ci-pipeline-php
Gitlab CI pipeline for PHP applications
Stars: ✭ 24 (+33.33%)
Mutual labels:  gitlab-ci
aws-autoscaling-gitlab-runner
CloudFormation template to deploy a GitLab Runner with auto-scaling on AWS.
Stars: ✭ 44 (+144.44%)
Mutual labels:  gitlab-ci
gitlab-ci-android-fastlane
Docker image for building android apps on Gitlab CI
Stars: ✭ 25 (+38.89%)
Mutual labels:  gitlab-ci
ci-skip
CI skip comment
Stars: ✭ 35 (+94.44%)
Mutual labels:  drone-ci
triggerflow
Event-based Orchestration of Serverless Workflows
Stars: ✭ 38 (+111.11%)
Mutual labels:  trigger
godot-cpp-ci
Docker image and Github Actions to automatically compile Godot C++ GDNative libraries.
Stars: ✭ 21 (+16.67%)
Mutual labels:  gitlab-ci
multibranch-action-triggers-plugin
MultiBranch Actions Trigger Plugin
Stars: ✭ 29 (+61.11%)
Mutual labels:  trigger

drone-gitlab-ci

logo

GoDoc Build Status codecov Go Report Card Docker Pulls microbadger

Drone plugin for trigger gitlab-ci jobs.

GitLab Setting

See the detail documentation for Triggering pipelines through the API. How to get the token from a new trigger? You can add a new trigger by going to your project’s Settings ➔ CI/CD under Triggers.

token

How to get the project ID? going to your project’s Settings ➔ General under Gerneral project.

projectID

Build or Download a binary

The pre-compiled binaries can be downloaded from release page. Support the following OS type.

  • Windows amd64/386
  • Linux amd64/386
  • Darwin amd64/386

With Go installed

go get -u -v github.com/appleboy/drone-gitlab-ci

or build the binary with the following command:

make build

Docker

Build the docker image with the following commands:

make docker

Usage

There are three ways to trigger gitlab-ci jobs.

Usage from binary

trigger job.

drone-gitlab-ci \
  --host https://gitlab.com/ \
  --token XXXXXXXX \
  --ref master \
  --id gitlab-ci-project-id

Enable debug mode.

drone-gitlab-ci \
  --host https://gitlab.com/ \
  --token XXXXXXXX \
  --ref master \
  --id gitlab-ci-project-id
+ --debug

Usage from docker

trigger job.

docker run --rm \
  -e GITLAB_HOST=https://gitlab.com/
  -e GITLAB_TOKEN=xxxxx
  -e GITLAB_REF=master
  -e GITLAB_ID=gitlab-ci-project-id
  appleboy/drone-gitlab-ci

Enable debug mode.

docker run --rm \
  -e GITLAB_HOST=https://gitlab.com/ \
  -e GITLAB_TOKEN=xxxxx \
  -e GITLAB_REF=master \
  -e GITLAB_ID=gitlab-ci-project-id \
  -e GITLAB_DEBUG=true \
  appleboy/drone-gitlab-ci

Usage from drone ci

Execute from the working directory:

docker run --rm \
  -e PLUGIN_HOST=https://gitlab.com/ \
  -e PLUGIN_TOKEN=xxxxx \
  -e PLUGIN_REF=master \
  -e PLUGIN_ID=gitlab-ci-project-id \
  -e PLUGIN_DEBUG=true \
  -v $(pwd):$(pwd) \
  -w $(pwd) \
  appleboy/drone-gitlab-ci

You can get more information about how to use scp plugin in drone.

Testing

Test the package with the following command:

make test
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].