Skip to content

drone/plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compile and install the binary:

go install github.com/drone/plugin

Execute a Harness plugin:

export PLUGIN_URLS=https://webhook.site/05a1f5dc-ee5e-4c3f-86af-de39feee929a
export DRONE_REPO_OWNER=octocat
export DRONE_REPO_NAME=hello-world
export DRONE_COMMIT_SHA=7fd1a60b01f91b314f59955a4e4d4e80d8edf11d
export DRONE_COMMIT_BRANCH=master
export DRONE_COMMIT_AUTHOR=octocat
export DRONE_BUILD_NUMBER=1
export DRONE_BUILD_STATUS=success
export DRONE_BUILD_LINK=http://github.com/octocat/hello-world
export DRONE_TAG=1.0.0

plugin -repo https://github.com/drone-plugins/drone-webhook.git

Execute a Harness plugin by alias:

plugin -name webhook

Execute a Bitrise plugin:

plugin -repo https://github.com/bradrydzewski/test-step.git -ref main

Execute below github action:

steps:
- name: action
  type: action
  spec:
    uses: actions/[email protected]
    with:
        who-to-greet: Mona the Octocat
    env:
        hello: world

Run on linux

export PLUGIN_WITH="{ \"who-to-greet\": \"Mona the Octocat\" }"
export hello=world

plugin -kind action -name actions/[email protected]

Run on windows

$env:PLUGIN_WITH = '{ "distribution": "temurin", "java-version": "17" }'
$env:DRONE_ENV = 'C:\Users\Administrator\drone.env'
plugin -kind action -name actions/setup-java@v3