summaryrefslogtreecommitdiffstats
path: root/deploy
AgeCommit message (Collapse)Author
2023-06-18Replace the old log setup, with structured logging etc.Bjørn Erik Pedersen
Fixes #11124
2023-05-16Create a struct with all of Hugo's config optionsBjørn Erik Pedersen
Primary motivation is documentation, but it will also hopefully simplify the code. Also, * Lower case the default output format names; this is in line with the custom ones (map keys) and how it's treated all the places. This avoids doing `stringds.EqualFold` everywhere. Closes #10896 Closes #10620
2023-03-07ensure we default to 10 correctlydavidejones
2023-03-07switch transfers to workersdavidejones
2023-03-07customize parallel transfer countdavidejones
2023-03-01Replace deprecated ioutil with io and osOleksandr Redko
https://pkg.go.dev/io/ioutil is deprecated since Go 1.16.
2022-06-06deps: Update to github.com/pelletier/go-toml/v2 v2.0.1Anthony Fok
2022-05-06Improve error messages, esp. when the server is runningBjørn Erik Pedersen
* Add file context to minifier errors when publishing * Misc fixes (see issues) * Allow custom server error template in layouts/server/error.html To get to this, this commit also cleans up and simplifies the code surrounding errors and files. This also removes the usage of `github.com/pkg/errors`, mostly because of https://github.com/pkg/errors/issues/223 -- but also because most of this is now built-in to Go. Fixes #9852 Fixes #9857 Fixes #9863
2022-04-05deploy: Set an MD5 attribute and use that if eTag not availableDavid Jones
During Hugo deploy when a remote MD5 is invalid (e.g due to multipart eTag) Hugo reads the entire remote file and calculates the MD5 again which can be slow. This commit updates the file upload so that it will also store an MD5 hash in the cloud provider's attributes. e.g in AWS this looks like x-amz-meta-md5chksum: 26fe392386a8123bf8956a16e08cb841.
2022-03-17all: gofmt -w -r 'interface{} -> any' .Bjørn Erik Pedersen
Updates #9687
2021-12-11Remove debug statementJoe Mooring
2021-12-01Check for empty deployment targets and matchersJoe Mooring
Fixes #9220
2021-06-14Misc config loading fixesBjørn Erik Pedersen
The main motivation behind this is simplicity and correctnes, but the new small config library is also faster: ``` BenchmarkDefaultConfigProvider/Viper-16 252418 4546 ns/op 2720 B/op 30 allocs/op BenchmarkDefaultConfigProvider/Custom-16 450756 2651 ns/op 1008 B/op 6 allocs/op ``` Fixes #8633 Fixes #8618 Fixes #8630 Updates #8591 Closes #6680 Closes #5192
2021-04-29deploy: Don't treat a NotFound response for Delete as a fatal error.Robert van Gent
2021-03-14media: Make Type comparableBjørn Erik Pedersen
So we can use it and output.Format as map key etc. This commit also fixes the media.Type implementation so it does not need to mutate itself to handle different suffixes for the same MIME type, e.g. jpg vs. jpeg. This means that there are no Suffix or FullSuffix on media.Type anymore. Fixes #8317 Fixes #8324
2020-12-03all: Format code with gofumptBjørn Erik Pedersen
See https://github.com/mvdan/gofumpt
2020-10-28deploy: Do not call CDN service invalidation when executing a dry run deploymentJosé Moreira
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
2020-10-23build: Allow optional "nodeploy" tag to exclude deploy command from binEric Hagman
Fixes #7826
2020-08-03Respect mediatypes for deploy satotake
Fixes #6861
2020-05-14deploy: Do not suppress .well-known/ directoryJohn Weldon
Deployments ignore directories with a leading `.`, but should not ignore certain well known 'hidden' directories like `.well-known/` Fixes #6691
2020-03-08deploy: Add include and exclude support for remoteDavid Jones
2020-02-27deploy: Implement include/exclude filters for deployRobert van Gent
Fixes #6922
2019-10-03deploy: Add ability to invalidate Google Cloud CDNGarret Kelly
2019-09-13deploy: Do not compile in Azure on SolarisFazal Majid
See #6324
2019-08-12tests: Convert from testify to quicktestBjørn Erik Pedersen
2019-08-10Fixed tautological error conditionsChristian Muehlhaeuser
Drop error & nil checks where the value can not have changed.
2019-06-08deploy: Default --target to the first deployment targetRobert van Gent
2019-05-31Drop dashes in http header matcher attributes; other changes from code reviewRobert van Gent
2019-05-30deploy: remove TODO comment about subfolders; handled by GoCDK blob URLsRobert van Gent
2019-05-09deploy: Add tests; fix WindowsRobert van Gent
2019-05-06deploy: Support configuration of upload orderRobert van Gent
2019-05-06deploy: Support invalidating a CloudFront CDN cacheRobert van Gent
2019-05-04deploy: compute MD5 by reading if List didn't provide oneRobert van Gent
2019-05-03Add a "deploy" commandRobert van Gent