docker-mailserver/docs/content/config
Brennan Kinney fb72f3ad52
ci(docs): Fail when build aborts from broken links (#2266)
Using `set -ex` will exit the script as soon as a non-zero exit code is returned, such as when the docker image fails building the docs due to `build --strict` catching broken links. This also removes the need for `|| exit` when changing directory.

This seems fine for a small script, but AFAIK an alternative fix is just adding `|| exit` to the end of the `docker run` command too? There appears to be advice [against adopting `-e` carelessly](http://mywiki.wooledge.org/BashFAQ/105), while others [encourage `-e`](http://redsymbol.net/articles/unofficial-bash-strict-mode/). I know that several maintainers here have preference towards `set -e` so I've kept the original PR solution.

Additionally:

- `-x` is used to improve command visibility when reviewing the workflow log output.
- `--name` isn't necessary, but was part of the original PR.
- I've chosen not to include `-o pipefail`, only because no pipes are used in this script.

* docs(fix): Fix broken links

* ci(docs): Added inline docs

Extra documentation context for maintainers to quickly grok what's going on.

* chore(docs): Minor typo fix by wernerfred

Added from their related PR by request.
2021-10-31 09:13:18 +13:00
..
advanced docs(chore): Normalize for consistency (#2206) 2021-09-23 11:29:37 +12:00
best-practices docs(chore): Normalize for consistency (#2206) 2021-09-23 11:29:37 +12:00
security docs(ssl): Add an FQDN section (#2268) 2021-10-31 00:12:39 +13:00
troubleshooting docs(chore): Normalize for consistency (#2206) 2021-09-23 11:29:37 +12:00
user-management ci(docs): Fail when build aborts from broken links (#2266) 2021-10-31 09:13:18 +13:00
environment.md ci(docs): Fail when build aborts from broken links (#2266) 2021-10-31 09:13:18 +13:00
pop3.md More typo fixes and improve ports example at POP3 docs (#2128) 2021-08-13 10:33:10 +02:00
setup.sh.md docs(chore): Normalize for consistency (#2206) 2021-09-23 11:29:37 +12:00