dbalmain / serverless-plugin-git-variables

:zap: Expose git variables to serverless

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

:zap: Expose git variables to serverless

License:MIT License


Languages

Language:Shell 87.3%Language:JavaScript 12.7%