Skip to content

congr/serverless-plugin-git-variables

 
 

Repository files navigation

serverless-plugin-git-variables

Coverage Status Build Status

Expose git variables (HEAD description, branch name, and short commit hash) to your serverless services.

Usage

functions:
  processEventBatch:
    name: ${self:provider.stage}-${self:service}-process-event-batch
    description: ${git:branch} - ${git:describe} - ${git:sha1}

plugins:
  - serverless-plugin-git-variables

Serverless Version Support

  • If you're using serverless 1.12.x or below, use the 1.x.x version of this plugin.
  • This plugin is currently broken for serverless versions between 1.13 and 1.15 (inclusive).
  • If you're using serverless 1.16.x or above, use the 2.x.x version of this plugin.

Version History

  • 2.0.0
    • support Serverless >= 1.16.0
  • 1.0.1
    • list babel-runtime as a dependency
  • 1.0.0
    • Initial release

About

⚡ Expose git variables to serverless

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 87.3%
  • JavaScript 12.7%