Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/appleboy/drone-php-curl
- Owner: appleboy
- License: mit
- Created: 2017-06-30T14:25:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-01T16:26:17.000Z (over 7 years ago)
- Last Synced: 2024-05-29T01:10:05.786Z (4 months ago)
- Topics: drone-plugin, php-curl
- Language: PHP
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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