From b3ef6db1fc0a3ea7bdce2efa0175cc634d8c3f1b Mon Sep 17 00:00:00 2001 From: adueck Date: Thu, 28 Nov 2024 14:29:24 +0500 Subject: [PATCH] try functions deploy CI/CD first time --- .github/workflows/TODO-deploy-functions | 0 .github/workflows/deploy-functions.yml | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+) delete mode 100644 .github/workflows/TODO-deploy-functions create mode 100644 .github/workflows/deploy-functions.yml diff --git a/.github/workflows/TODO-deploy-functions b/.github/workflows/TODO-deploy-functions deleted file mode 100644 index e69de29..0000000 diff --git a/.github/workflows/deploy-functions.yml b/.github/workflows/deploy-functions.yml new file mode 100644 index 0000000..d1c6eef --- /dev/null +++ b/.github/workflows/deploy-functions.yml @@ -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"