try functions deploy CI/CD first time
This commit is contained in:
parent
6d34c9cda2
commit
b3ef6db1fc
|
@ -0,0 +1,24 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths:
|
||||||
|
- "functions/**"
|
||||||
|
- ".github/workflows/deploy-functions.yml"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
aws_cdk:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: cdk deploy
|
||||||
|
uses: youyo/aws-cdk-github-actions@v2
|
||||||
|
with:
|
||||||
|
cdk_subcommand: "deploy"
|
||||||
|
cdk_stack: "stack1"
|
||||||
|
cdk_args: "--require-approval never"
|
||||||
|
actions_comment: false
|
||||||
|
env:
|
||||||
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
AWS_DEFAULT_REGION: "us-east-1"
|
Loading…
Reference in New Issue