From a7008fc824f8192be0270187aee1fc9265d61557 Mon Sep 17 00:00:00 2001 From: Tania Ponomarenko Date: Wed, 9 Aug 2023 20:24:32 +0300 Subject: [PATCH] invalidate cache after deployment --- .github/workflows/master_pipeline.yml | 4 +++- helmfile.yaml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/master_pipeline.yml b/.github/workflows/master_pipeline.yml index 3b58de4..c492b22 100644 --- a/.github/workflows/master_pipeline.yml +++ b/.github/workflows/master_pipeline.yml @@ -10,6 +10,7 @@ env: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_DEFAULT_REGION: eu-central-1 + CLOUDFRONT_DISTRIBUTION: E105UU8V5LGPMZ jobs: build-and-push-image: @@ -67,4 +68,5 @@ jobs: run: | source assume-role.sh aws eks update-kubeconfig --name main-cluster - helmfile apply \ No newline at end of file + helmfile apply + aws cloudfront create-invalidation --distribution-id "$CLOUDFRONT_DISTRIBUTION" --paths "/*" \ No newline at end of file diff --git a/helmfile.yaml b/helmfile.yaml index 8ccdddf..d01c00e 100644 --- a/helmfile.yaml +++ b/helmfile.yaml @@ -1,3 +1,5 @@ +wait: true + repositories: - name: common url: git+https://github.com/latin-ua/common_chart/@chart