Drone plugins > Vercel Deploy
Plugin that allows you deploy a site to Vercel.
Example
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: amd64
steps:
- name: deploy
image: docker.io/kameshsampath/drone-vercel-deploy
pull: never
settings:
log_level: debug
# valid values are production, development, preview
vercel_env: production
vercel_token:
from_secret: vercel_token
vercel_org_id:
from_secret: vercel_org_id
vercel_project_id:
from_secret: vercel_project_id
vercel_project_create: true
vercel_environment:
- NEXT_PUBLIC_FOO=BAR
- NEXT_PUBLIC_XMAS=25 Dec
Properties
vercel_env
stringrequiredThe vercel environment to deploy. It could be one of development, preview or production.
Default: development
vercel_token
stringrequiredThe Vercel Token to use.
Secret recommendedDefault: none
vercel_org_id
stringrequiredThe Vercel organization to which the site project is associated.
Secret recommendedDefault: none
vercel_project_id
stringrequiredThe Vercel Project where the site will be deployed. It could be name or id of existing project or the project that will be created.
Secret recommendedDefault: none
vercel_project_create
booleanoptionalFlag to indicate if the project need to be created
Default: true
vercel_environment_variables
objectoptionalAn array of KEY=VALUE pair of environment variables will be added to site project at vercel_environment scope.
Default: none
vercel_environment_variable_file
stringoptionalAn environment variable file, with each line being a KEY=VALUE pairs.
Default: none
log_level
stringoptionalLog level that will be used while debugging the plugin
Default: none