summaryrefslogtreecommitdiffstats
path: root/commands/deploy.go
diff options
context:
space:
mode:
authorRobert van Gent <rvangent@google.com>2019-05-01 13:25:06 -0700
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-05-06 21:09:33 +0200
commitf4956d9aae69b1cb5715114cf5242fd80a9cabc7 (patch)
treed6dd5884a457576ccd826c41deb18b5ee1593db3 /commands/deploy.go
parent2838d58b1daa0f6a337125c5a64d06215901c5d6 (diff)
deploy: Support invalidating a CloudFront CDN cache
Diffstat (limited to 'commands/deploy.go')
-rw-r--r--commands/deploy.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/deploy.go b/commands/deploy.go
index 14e7e1627..6f8eac357 100644
--- a/commands/deploy.go
+++ b/commands/deploy.go
@@ -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