feat: test commit #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- uses: actions/setup-python@v2 | |
- uses: aws-actions/setup-sam@v1 | |
with: | |
version: 1.112.0 | |
- uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: arn:aws:iam::736414281642:role/LambdaDeployGithubActionRole | |
aws-region: ap-south-1 | |
audience: sts.amazonaws.com | |
role-session-name: lambda-deploy | |
# sam build | |
- run: sam build --use-container | |
- run: sam deploy -g --config-file samconfig.toml --config-env staging --region ap-south-1 --stack-name sc-platform-pii-lambda-staging --template-file template.yml --no-confirm-changeset --no-fail-on-empty-changeset --debug | |
env: | |
SAM_CLI_TELEMETRY: 0 |