Serverless Framework Github Action
169
Serverless Github Action with the good versions!
We use a precreated Docker image with the Serverless Framework in place already to avoid the installation
Base line image:
This is how the step looks:
- name: serverless deploy
uses: suprgames/[email protected]
with:
command: deploy
args: -v
And this is a complete example inside a Github Workflow File:
on:
push:
branches:
- master
name: Deploy master branch
jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
# Deployment of your project
- name: serverless deploy
uses: suprgames/[email protected]
with:
command: deploy
args: -v
env:
# To link with your Serverless Framework account, equivalent to login
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}
# The AWS Credentials
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# Set up of Node 12
- name: Installing Node 12
uses: actions/setup-node@v2-beta
with:
node-version: '12'
# This is needed if you have plugins that you need to install in your Serverless
- name: npm install
uses: actions/npm@master
with:
args: install
The Dockerfile and associated scripts and documentation in this project are released under MIT license.
Content type
Image
Digest
Size
97.5 MB
Last updated
about 6 years ago
docker pull suprgames/serverless-github-action