Skip to content

Commit

Permalink
invalidate cache after deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
tponomarenko committed Aug 9, 2023
1 parent 8ce7177 commit a7008fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/master_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -67,4 +68,5 @@ jobs:
run: |
source assume-role.sh
aws eks update-kubeconfig --name main-cluster
helmfile apply
helmfile apply
aws cloudfront create-invalidation --distribution-id "$CLOUDFRONT_DISTRIBUTION" --paths "/*"
2 changes: 2 additions & 0 deletions helmfile.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
wait: true

repositories:
- name: common
url: git+https://github.com/latin-ua/common_chart/@chart
Expand Down

0 comments on commit a7008fc

Please sign in to comment.