An open API service indexing awesome lists of open source software.

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

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
```