Skip to content

Commit

Permalink
feat: 👷 add continous deployment sam workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jbleduigou committed Feb 21, 2024
1 parent 3bb1c45 commit 1af46aa
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/sam.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: SAM
on:
push:
branches:
- main
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21
- uses: aws-actions/setup-sam@v2
with:
use-installer: true
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
role-session-name: ${{ secrets.AWS_ROLE_SESSION_NAME }}
aws-region: ${{ secrets.AWS_REGION }}
# sam build
- run: sam build

# sam deploy
- run: sam deploy --no-confirm-changeset --no-fail-on-empty-changeset --stack-name ${{ secrets.AWS_STACK_NAME }} --resolve-s3 --capabilities CAPABILITY_IAM --region ${{ secrets.AWS_REGION }}

0 comments on commit 1af46aa

Please sign in to comment.