Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1.13 KB

README.md

File metadata and controls

29 lines (21 loc) · 1.13 KB

Github Action Workflows

  • S3 Trunk Based Development - Creates and deploys development, staging, and production environment infastructure for built SPA applications

How to Setup

Create Submodule at Desired Repo

Note: Certain workflows may require the use of files in this repository

git submodule add https://github.com/thomasmendez/workflows.git

Set Workflow to Use

Create a job that uses the workflow file. It can be similar to the one below. You can find specifc examples in the docs folder

build:
  needs: pre_build
  uses: thomasmendez/workflows/.github/workflows/<workflow_file>.yml@main
  with:
    AWS_BUCKET_NAME: ${{ needs.pre_build.outputs.AWS_BUCKET_NAME }}
    DIST_NAME: ${{ needs.pre_build.outputs.DIST_NAME }}
    DIST_PATH: ${{ needs.pre_build.outputs.DIST_PATH }}
  secrets:
    TF_API_TOKEN: ${{ secrets.TF_API_TOKEN }}
    AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
    AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}