GithubHelp home page GithubHelp logo

jaeshinjun / chalice-extended-action Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jayef0/chalice-extended-action

0.0 0.0 0.0 82 KB

Automated deployment of your Chalice application via Github Actions

License: Other

Shell 53.72% Dockerfile 46.28%

chalice-extended-action's Introduction

Chalice Extended Action

This Github action allows automated deployment of your Chalice application via Github Actions.

You don't know what Chalice is?

To put it in a nutshell: Python Serverless Microframework for AWS

Link: https://github.com/aws/chalice

Parameters

The parameters will be passed to the action by using environment variables.

Name Description Required?
WORKING_DIRECTORY Working directory of chalice in which the chalice project is or should be stored Optional
REQUIREMENTS_FILE Path to a requirements file which should be installed before handling the chalice project Optional
PROJECT_DIR Path to a directory which contains a chalice project Optional
STAGE Name of stage which should be used Optional
OPERATION Chalice operation Required

Usage

  1. Create a directory named .github/workflows/

  2. Create a YAML file, e.g. action_workflow.yml, and place it in the created directory above

  3. Example content of the YAML file:

on:
  push:
    branches:
      - master
name: Deploy branch to Chalice
jobs:
  deploy:
    name: deploy
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: chalice deploy
      uses: jayef0/[email protected]
      env:
        WORKING_DIRECTORY: backend/chalice
        REQUIREMENTS_FILE: requirements.prod.txt
        OPERATION: deploy
        STAGE: dev
        AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
        AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
        AWS_DEFAULT_REGION: us-east-1

Functionality

A short overview of the execution process:

Secrets

The recommendation is to set the AWS credentials as GitHub secrets in your GitHub repository.

chalice-extended-action's People

Contributors

jaeshinjun avatar jangia avatar jayef0 avatar keocoin avatar msh100 avatar skinofstars 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.