mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
deploy: Support invalidating a CloudFront CDN cache
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
2838d58b1d
commit
f4956d9aae
@@ -68,6 +68,7 @@ func newDeployCmd() *deployCmd {
|
||||
cc.cmd.Flags().Bool("confirm", false, "ask for confirmation before making changes to the target")
|
||||
cc.cmd.Flags().Bool("dryRun", false, "dry run")
|
||||
cc.cmd.Flags().Bool("force", false, "force upload of all files")
|
||||
cc.cmd.Flags().Bool("invalidateCDN", true, "invalidate the CDN cache via the CloudFrontDistributionID listed in the deployment target")
|
||||
cc.cmd.Flags().Int("maxDeletes", 256, "maximum # of files to delete, or -1 to disable")
|
||||
|
||||
return cc
|
||||
|
@@ -213,6 +213,7 @@ func initializeFlags(cmd *cobra.Command, cfg config.Provider) {
|
||||
"force",
|
||||
"gc",
|
||||
"i18n-warnings",
|
||||
"invalidateCDN",
|
||||
"layoutDir",
|
||||
"logFile",
|
||||
"maxDeletes",
|
||||
|
Reference in New Issue
Block a user