From 363746c07bb2bf4dbe3151deff5a45a8a9c2bf69 Mon Sep 17 00:00:00 2001 From: carlomazzaferro Date: Mon, 18 Sep 2023 18:01:56 +0200 Subject: [PATCH] add invalidation step --- .github/workflows/ci.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b2cd804..098948c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,6 +6,8 @@ on: jobs: terraform-deploy-assets: + env: + CF_DISTRIBUTION_ID: E1W1OZ8FEAK8E7 runs-on: ubuntu-latest name: Deploy file to s3 + cloudfront steps: @@ -30,3 +32,6 @@ jobs: - name: Terraform Deploy run: terraform apply -auto-approve + + - name: Invalidate Cloudfront Distribution + run: aws cloudfront create-invalidation --distribution-id $CF_DISTRIBUTION_ID --paths '/chaindata.json'