https://github.com/drone/plugin
Tool to execute plugins
https://github.com/drone/plugin
Last synced: 5 months ago
JSON representation
Tool to execute plugins
- Host: GitHub
- URL: https://github.com/drone/plugin
- Owner: drone
- License: other
- Created: 2022-09-30T14:04:31.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2026-02-13T11:26:13.000Z (5 months ago)
- Last Synced: 2026-02-13T19:24:01.412Z (5 months ago)
- Language: Go
- Size: 36.6 MB
- Stars: 3
- Watchers: 1
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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:
```console
steps:
- name: action
type: action
spec:
uses: actions/hello-world-javascript-action@v1.1
with:
who-to-greet: Mona the Octocat
env:
hello: world
```
Run on linux
```shell
export PLUGIN_WITH="{ \"who-to-greet\": \"Mona the Octocat\" }"
export hello=world
plugin -kind action -name actions/hello-world-javascript-action@v1.1
```
Run on windows
```powershell
$env:PLUGIN_WITH = '{ "distribution": "temurin", "java-version": "17" }'
$env:DRONE_ENV = 'C:\Users\Administrator\drone.env'
plugin -kind action -name actions/setup-java@v3
```