GithubHelp home page GithubHelp logo

ymaghzaz / serverless-ci-cd Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 8 KB

This lib help you setup ci/cd workflow

JavaScript 100.00%
serverless serverless-framework serverless-plugin serverless-package aws ci cicd-pipeline cicd-azdevops

serverless-ci-cd's Introduction

serverless-ci-cd

NPM JavaScript Style Guide

Install

using npm

npm install --save serverless-ci-cd

using yarn

yarn add  serverless-ci-cd

Usage

This lib help you setup ci/cd workflow . In the build step you dont need to specify the stage name . In the release step you will use the artifacts generate in the build step to deploy in your prefer stage (dev , prod , ...)

Configuration

plugins:
  - serverless-ci-cd
  
custom:
  stage: ${opt:stage, self:provider.stage}
  region: ${opt:region, self:provider.region}
    

commande

for build step :

sls package-ci  --verbose

for release step :

sls deploy-cd --package .serverless -r eu-west-1 --stage prod --verbose

Serverless.yml Example

service: serverless-ci-cd-example

plugins:
  - serverless-ci-cd

custom:
  stage: ${opt:stage, self:provider.stage}
  region: ${opt:region, self:provider.region}

provider:
  name: aws
  runtime: nodejs6.10
  environment:
    queue_name: {Ref ExampleQueue}

functions:
  example:
    handler: functions/example.handle
    events:
      - http:
          path: example
          method: get
          cors: true

resources:
  Resources:
    ExampleQueue:
      Type: AWS::SQS::Queue
      Properties:
        QueueName: example-queue-${self:custom.stage}
 

serverless-ci-cd's People

Contributors

ymaghzaz avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.