drone-netlify/README.md

45 lines
1001 B
Markdown
Raw Normal View History

2022-10-20 22:47:15 +00:00
# drone-netlify
2018-02-15 20:08:23 +00:00
![Netlify logo](netlify.png?raw=true "netlify.com")
2018-02-15 20:34:01 +00:00
> Deploying to [Netlify](https://netlify.com) with [Drone](https://drone.io) CI.
2022-10-20 21:58:05 +00:00
[![Docker Pulls](https://img.shields.io/docker/pulls/internetmat/drone-netlify.svg)](https://hub.docker.com/r/internetmat/drone-netlify/)
2018-02-15 20:08:23 +00:00
Use case examples:
- Automatically create staging deployments for pull requests
- Automatically deploy and alias upon pushes to master
## Usage
For the usage information and a listing of the available options please take a look at [the docs](DOCS.md).
There are two ways to deploy.
### From docker
Deploy the working directory to Netlify.
```bash
docker run --rm \
2022-10-20 21:58:05 +00:00
-e PLUGIN_TOKEN=$NETLIFY_TOKEN \
-e PLUGIN_SITE=my-netlify-site \
2018-02-15 20:08:23 +00:00
-v $(pwd):$(pwd) \
-w $(pwd) \
2022-10-20 21:58:05 +00:00
internetmat/drone-netlify
2018-02-15 20:08:23 +00:00
```
### From Drone CI
```yaml
pipeline:
netlify:
2022-10-20 21:58:05 +00:00
image: internetmat/drone-netlify
settings:
token:
from_secret: netlify_token
site:
from_secret: netlify_site_id
2018-02-15 20:08:23 +00:00
```