From 2169d8b3dce0d813cdc10937b4f2b49a997a05dd Mon Sep 17 00:00:00 2001 From: Maria Saladovnikova Date: Thu, 12 Dec 2024 22:00:26 +0000 Subject: [PATCH] typo, add bff echo --- .github/workflows/aws-deployment.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/aws-deployment.yml b/.github/workflows/aws-deployment.yml index cb8fcc05..efe13ae5 100644 --- a/.github/workflows/aws-deployment.yml +++ b/.github/workflows/aws-deployment.yml @@ -77,9 +77,11 @@ jobs: if [ "${{ github.event.inputs.environment }}" == "production" ]; then echo "S3_BUCKET=${{ env.PRODUCTION_S3_BUCKET }}" >> $GITHUB_ENV echo "CLOUDFRONT_DISTRIBUTION_ID=${{ env.PRODUCTION_CLOUDFRONT_DISTRIBUTION_ID }}" >> $GITHUB_ENV + echo "BFF_CLOUDFRONT_DISTRIBUTION_ID=${{ env.PRODUCTION_BFF_CLOUDFRONT_DISTRIBUTION_ID }}" >> $GITHUB_ENV elif [ "${{ github.event.inputs.environment }}" == "staging" ]; then echo "S3_BUCKET=${{ env.STAGING_S3_BUCKET }}" >> $GITHUB_ENV echo "CLOUDFRONT_DISTRIBUTION_ID=${{ env.STAGING_CLOUDFRONT_DISTRIBUTION_ID }}" >> $GITHUB_ENV + echo "BFF_CLOUDFRONT_DISTRIBUTION_ID=${{ env.STAGING_BFF_CLOUDFRONT_DISTRIBUTION_ID }}" >> $GITHUB_ENV else echo "Invalid environment specified" exit 1 @@ -101,4 +103,4 @@ jobs: run: aws cloudfront create-invalidation --distribution-id ${{ env.CLOUDFRONT_DISTRIBUTION_ID }} --paths "/*" - name: Invalidate CloudFront BFF cashe - run: aws cloudfront create-invalidation --distribution-id ${{ env.BFF_CLOUDFRONT_DISTRIBUTION_ID }} --path "/*" + run: aws cloudfront create-invalidation --distribution-id ${{ env.BFF_CLOUDFRONT_DISTRIBUTION_ID }} --paths "/*"