Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@purple/serverless-git-branch-stage-plugin

Package Overview
Dependencies
Maintainers
18
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@purple/serverless-git-branch-stage-plugin

Serverless Framework Plugin for transforming git branch name to a Serverless stage name

  • 1.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
513
increased by95.8%
Maintainers
18
Weekly downloads
 
Created
Source

serverless-git-branch-stage-plugin

CI Status Badge

This plugin provides two Serverless variables:

  • git:stage - branch name converted to camel case
  • git:basePath - branch name converted to kebab-case which is usefull for serverless-domain-manager plugin

Install

$ npm install --save-dev @purple/serverless-git-branch-stage-plugin

Add the plugin to your serverless.yml file

plugins:
  - '@purple/serverless-git-branch-stage-plugin'

Prerequisites:

This plugin requires git to be installed.
Tested on Linux and macOS.

Example

provider:
  name: aws
  stage: ${git:stage}
custom:
  customDomain:
    domainName: serverless.foo.com
    basePath:  ${git:basePath}

Overriding branch name

You can override the branch name with envrionment variable SLS_MOCK_BRANCH.

$ SLS_MOCK_BRANCH=master serverless deploy 

FAQs

Package last updated on 29 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc