Sign inSign up

cedrichopf/drone-status

By cedrichopf

Updated over 5 years ago

Drone CI Plugin for GitHub Status

Image
0

10K+

cedrichopf/drone-status repository overview

Drone CI Plugin for GitHub Status

This plugin creates/updates a GitHub status for a given repository and commit hash.

Usage

---
kind: pipeline
type: docker
name: github-status

trigger:
  event:
    - pull_request

steps:
  - name: create-status
    image: cedrichopf/drone-status
    settings:
      api_token: 1234567890
      state: success
      context: drone-ci/status-plugin
      description: Build successful

Settings

settings:
  api_token: 1234567890
  state: success
  context: drone-ci/status-plugin
  description: Build successful
  repo: cedrichopf/drone-status
  commit: 9f11f66aa4a7338ced215fb212d16e12b0edce46
  endpoint: https://github.enterprise.com

All settings will be passed into the container using environment variables. A complete overview of the available environment variables can be found in the table below.

Environment Variables

The following table contains an overview of the available environment variables to configure the application.

NameDescriptionDefault Value
PLUGIN_API_TOKENAccess token to interact with the GitHub API-
PLUGIN_STATEState of the status: error, failure, pending, success-
PLUGIN_CONTEXTStatus context, e.g. drone/status-plugin-
PLUGIN_DESCRIPTIONStatus description, e.g. Build is pending-
PLUGIN_REPOTarget repository to set the statusPipeline repository
PLUGIN_COMMITStatus' commit hashPipeline commit
PLUGIN_ENDPOINTEndpoint of the GitHub instance (e.g. GitHub Enterprise)https://api.github.com

Tag summary

Content type

Image

Digest

Size

44.1 MB

Last updated

over 5 years ago

docker pull cedrichopf/drone-status