deploy: Do not call CDN service invalidation when executing a dry run deployment
authorJosé Moreira <zemanel@zemanel.eu>
Tue, 27 Oct 2020 19:41:15 +0000 (20:41 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 28 Oct 2020 10:19:40 +0000 (11:19 +0100)
commit56a343507ca28254edb891bc1c21b6c8ca017982
treecf178d1e42013a0c850c7c7f734e5bac8b2be8a3
parentd48a98c477a818d28008d9771050d2681e63e880
deploy: Do not call CDN service invalidation when executing a dry run deployment

Currently, if cache invalidation is enabled when running `hugo deploy --dryRun` with , the deployer does not take the dry run flag into consideration and triggers CloudFront/GoogleCloudCDN cache invalidation if any of those services are configured.

This change will instead print a feedback message if a dry run is in effect and quiet mode is not enabled.

Fixes #7884
deploy/deploy.go