mirror of
https://github.com/gravitational/teleport
synced 2024-10-19 08:43:58 +00:00
docs: Don't lint external links when running in CI (#12058)
Original behaviour did not take effect in CI due to a different entrypoint. This restores the original behaviour (which will link external links when using make -C build.assets test-docs) but disables the external linting in CI for reliability. Updates #11940
This commit is contained in:
parent
2d95a8717e
commit
6090379bce
|
@ -1,11 +1,9 @@
|
|||
steps:
|
||||
- name: quay.io/gravitational/next:main
|
||||
id: docs-test
|
||||
env:
|
||||
- WITH_EXTERNAL_LINKS=true
|
||||
entrypoint: /bin/bash
|
||||
dir: /src
|
||||
args:
|
||||
- -c
|
||||
- ln -s /workspace /src/content && yarn markdown-lint-external-links
|
||||
args:
|
||||
- -c
|
||||
- ln -s /workspace /src/content && yarn markdown-lint
|
||||
timeout: 10m
|
||||
|
|
|
@ -415,7 +415,7 @@ docsbox:
|
|||
.PHONY:test-docs
|
||||
test-docs: docsbox
|
||||
docker run --platform=linux/amd64 -i $(NOROOT) -v $$(pwd)/..:/src/content $(DOCSBOX) \
|
||||
/bin/sh -c "yarn markdown-lint"
|
||||
/bin/sh -c "yarn markdown-lint-external-links"
|
||||
|
||||
#
|
||||
# Print the Go version used to build Teleport.
|
||||
|
|
Loading…
Reference in a new issue