Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucaperret/drone-now
Deploying to ▲ZEIT now with Drone CI
https://github.com/lucaperret/drone-now
deployment docker drone-ci drone-plugin now-cli
Last synced: 3 months ago
JSON representation
Deploying to ▲ZEIT now with Drone CI
- Host: GitHub
- URL: https://github.com/lucaperret/drone-now
- Owner: lucaperret
- License: mit
- Created: 2018-01-23T23:28:55.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-14T17:37:40.000Z (about 6 years ago)
- Last Synced: 2024-04-09T16:24:27.564Z (7 months ago)
- Topics: deployment, docker, drone-ci, drone-plugin, now-cli
- Language: Shell
- Homepage: http://plugins.drone.io/lucaperret/drone-now
- Size: 62.5 KB
- Stars: 16
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Drone-now
![Now logo](now.png?raw=true "now.sh")
> Deploying to [▲ZEIT now](https://zeit.co/now) with [Drone](https://drone.io) CI.
[![Docker Pulls](https://img.shields.io/docker/pulls/lucap/drone-now.svg)](https://hub.docker.com/r/lucap/drone-now/)
[![Image](https://images.microbadger.com/badges/image/lucap/drone-now.svg)](https://microbadger.com/images/lucap/drone-now "Get your own image badge on microbadger.com")
[![GitHub release](https://img.shields.io/github/release/lucaperret/drone-now.svg)](https://github.com/lucaperret/drone-now/releases/latest)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 now.
```bash
docker run --rm \
-e NOW_TOKEN=xxxxxxx \
-e PLUGIN_DEPLOY_NAME=my-deployment-name \
-e PLUGIN_ALIAS=my-deployment-alias.now.sh \
-v $(pwd):$(pwd) \
-w $(pwd) \
lucap/drone-now
```### From Drone CI
```yaml
pipeline:
now:
image: lucap/drone-now
deploy_name: my-deployment-name
type: static
team: xxxxxxxx
directory: public
alias: my.deployment.com
secrets: [ now_token ]
```