8000 GitHub - voyera/serverless-python-action: :zap::octocat: A Github Action for deploying with the Serverless Framework
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

voyera/serverless-python-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 

Repository files navigation

Github Action for Serverless

This Action wraps the Serverless Framework to enable common Serverless commands. Using this image to allow use of the serverless-python-requirements plugin to deploy AWS lambda functions written in python.

Usage

An example workflow to deploy a project with serverless:

name: Deploy master branch

on:
  push:
    branches:
      - master

jobs:
  deploy:
    name: deploy
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [12.x]
    steps:
    - uses: actions/checkout@v2
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}
    - run: npm ci
    - name: serverless deploy
      uses: oslokommune/serverless-python-action@master
      with:
        args: deploy
      env:
        SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}
        # or if using AWS credentials directly
        # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
        # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

License

The Dockerfile and associated scripts and documentation in this project are released under the Apache-2 license.

About

:octocat: A Github Action for deploying with the Serverless Framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 100.0%
0