Now

by lucaperret

The Now plugin deploy your build to now.sh. The below pipeline configuration demonstrates simple usage:

pipeline:
  now:
    image: lucap/drone-now
    token: xxxxx
    name: deployment-name

Example configuration for assigning Aliases and Domains:

pipeline:
  now:
    image: lucap/drone-now
    token: xxxxx
-   name: deployment-name
+   alias: my-deployment-alias

Example configuration with custom Path Aliases:

pipeline:
  now:
    image: lucap/drone-now
    token: xxxxx
-   alias: my-deployment-alias
+   rules_domain: example.com
+   rules_file: rules.json

Example configuration for Scaling:

pipeline:
  now:
    image: lucap/drone-now
    token: xxxxx
-   rules_domain: example.com
-   rules_file: rules.json
+   scale: 2

Example configuration to enforce type (by default, it’s detected automatically):

pipeline:
  now:
    image: lucap/drone-now
    token: xxxxx
-   scale: 2
+   type: npm

Example configuration using token from secrets:

pipeline:
  now:
    image: lucap/drone-now
-   token: xxxxx
+   secrets: [ now_token ]

Secret Reference

now_token
Now token

Parameter Reference

token
Now token
name
Set the name of the deployment
alias
Target Now.sh subdomain or domain
rules_domain
Your domain
rules_file
File that contain set of rules
scale
Min and Max scaling values
type
Deployment type (docker, npm, static)