Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Serverleta

This Github action compares CloudFormation plans generated by Serverless projects and posts the difference results as a comment in the Pull Requests.

Inputs

Inputs Description Required Default
s3 S3 bucket where serverless-state will be stored. True ''
build Command to build the application. False ''
package_args Arguments to include when packaging the application. False ''
aws_access_key_id AWS access key to download/upload the latest CloudFormation. True ''
aws_secret_access_key AWS secret access key to download/upload the latest CloudFormation. True ''
aws_region AWS S3 region. True ''
github_token Github token to write comments in PR. True ''
action Action to serverleta execute. True 'comment/deploy'
generate_cloudformation Whether to generate and save the CloudFormation or not. False 'false'

Usage

Save current state in s3

On your deploy action add these lines:

    - name: serverleta
      uses: loadfms/serverleta@v1.0.14
      with:
        s3: "s3-bucket-name/repo-name"
        build: "make build-command"
        aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
        aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
        aws_region: "sa-east-1"
        github_token: ${{ secrets.TOKEN }}
        action: "deploy" 

Add comment with plan

On your pull request action add these lines:

    - name: serverleta
      uses: loadfms/serverleta@v1.0.14
      with:
        s3: "s3-bucket-name/repo-name"
        build: "make build-command"
        aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
        aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
        aws_region: "sa-east-1"
        github_token: ${{ secrets.TOKEN }}
        action: "comment" 

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors