From 95dff48b4ea3a4cf1dc5f41b78b5eee2211da3d2 Mon Sep 17 00:00:00 2001 From: Christopher Lo <46541035+topher-lo@users.noreply.github.com> Date: Sun, 17 Mar 2024 11:59:16 +0000 Subject: [PATCH] ci(engine): Add missing cdk stack env vars to GH action workflow --- .github/workflows/deploy-aws-cdk.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-aws-cdk.yml b/.github/workflows/deploy-aws-cdk.yml index 654e1bdc9..662f5c9d2 100644 --- a/.github/workflows/deploy-aws-cdk.yml +++ b/.github/workflows/deploy-aws-cdk.yml @@ -2,6 +2,11 @@ name: Deploy Tracecat to AWS on: workflow_dispatch: + inputs: + app_env: + description: "App Environment" + required: false + default: "dev" jobs: deploy: @@ -12,7 +17,10 @@ jobs: id-token: write # This line allows GitHub Actions to request an OIDC token contents: read env: - TRACECAT__APP_ENV: prod + TRACECAT__APP_ENV: ${{ github.event.inputs.app_env }} + AWS_ROUTE53__HOSTED_ZONE_ID: ${{ secrets.AWS_ROUTE53__HOSTED_ZONE_ID }} + AWS_ROUTE53__HOSTED_ZONE_NAME: ${{ secrets.AWS_ROUTE53__HOSTED_ZONE_NAME }} + AWS_ACM__CERTIFICATE_ARN: ${{ secrets.AWS_ACM__CERTIFICATE_ARN }} steps: - name: Checkout 🛎️ uses: actions/checkout@v4