Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/appleboy/drone-php-curl

php curl for drone plugin
https://github.com/appleboy/drone-php-curl

drone-plugin php-curl

Last synced: 2 days ago
JSON representation

php curl for drone plugin

Awesome Lists containing this project

README

        

# Example PHP Plugin

This provides a brief tutorial for creating a Drone webhook plugin, using simple `php` scripting, to make an http requests during the build pipeline. The below example demonstrates how we might configure a webhook plugin in the Yaml file:

```yml
pipeline:
webhook:
image: foo/webhook
url: http://foo.com
method: post
body: |
hello world
```

Create a simple shell script that invokes curl using the Yaml configuration parameters, which are passed to the script as environment variables in uppercase and prefixed with `PLUGIN_`.

```php