Drone plugins > Vercel Deploy
vercel-icon-dark.svg

Vercel Deploy

by kameshsampath


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

    stringrequired

    The vercel environment to deploy. It could be one of development, preview or production.

    Default: development

  • vercel_token

    stringrequired

    The Vercel Token to use.

    Secret recommended

    Default: none

  • vercel_org_id

    stringrequired

    The Vercel organization to which the site project is associated.

    Secret recommended

    Default: none

  • vercel_project_id

    stringrequired

    The 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 recommended

    Default: none

  • vercel_project_create

    booleanoptional

    Flag to indicate if the project need to be created

    Default: true

  • vercel_environment_variables

    objectoptional

    An array of KEY=VALUE pair of environment variables will be added to site project at vercel_environment scope.

    Default: none

  • vercel_environment_variable_file

    stringoptional

    An environment variable file, with each line being a KEY=VALUE pairs.

    Default: none

  • log_level

    stringoptional

    Log level that will be used while debugging the plugin

    Default: none