Skip to content

Commit

Permalink
chore(ci): invalidate CDN cache for latest & major versions (prod) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibodeauJF authored Nov 3, 2021
1 parent 2592891 commit f3967df
Show file tree
Hide file tree
Showing 4 changed files with 303 additions and 0 deletions.
12 changes: 12 additions & 0 deletions JenkinsfileProductionRelease
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,17 @@ node('linux && docker') {
sh 'npm run notify:docs'
}
}

stage('Cloudfront invalidation') {
withCredentials([
[
$class: "AmazonWebServicesCredentialsBinding",
credentialsId: "CloudfrontCacheInvalidation",
]
]) {
sh 'npm ci';
sh 'node ./scripts/invalidate-cloudfront.js'
}
}
}
}
Loading

0 comments on commit f3967df

Please sign in to comment.