Skip to content

feat: added github deployment files #6

feat: added github deployment files

feat: added github deployment files #6

Workflow file for this run

# name: Staging CI Workflow
# on:
# push:
# branches:
# - staging
# jobs:
# staging_ci_deployment:
# runs-on: arc-runner-set-dind
# steps:
# - name: Setup AWS CLI
# uses: aws-actions/configure-aws-credentials@v1
# - name: Lambda SAM Deployment
# uses: aws-actions/setup-sam@v1
# with:
# role-to-assume: arn:aws:iam::736414281642:role/ECRPushGithubActionRole
# aws-region: ap-south-1
# run: sam deploy --config-env ${{ steps.extract_branch.outputs.branch }}
# - uses: aws-actions/configure-aws-credentials@v1
on:
push:
branches:
- staging
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: aws-actions/setup-sam@v1
with:
role-to-assume: arn:aws:iam::736414281642:role/ECRPushGithubActionRole
aws-region: ap-south-1
# sam build
- run: sam deploy --config-env ${{ steps.extract_branch.outputs.branch }}