update linkchecker config and use docker build instead of copy

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2021-09-13 15:07:06 +02:00
parent 5338b19ef2
commit b77242d465
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 6 additions and 5 deletions

View File

@ -15,15 +15,16 @@ jobs:
- name: build image
run: docker build --target=current -t documentation:latest .
- name: copy files to host
# https://forums.docker.com/t/is-there-a-way-to-copy-a-file-from-an-image-to-the-local-filesystem-without-running-a-container/2841
run: |
docker run --name docs documentation:latest /bin/true
docker cp docs:/usr/share/nginx/html _site
run: docker build --target=deploy-source --output=./_site .
- name: check for broken links
uses: chabad360/htmlproofer@master
with:
directory: ./_site
arguments: --disable-external
# for available options, refer to:
# - https://github.com/gjtorikian/html-proofer
# - https://github.com/gjtorikian/html-proofer/blob/main/bin/htmlproofer
arguments: --disable-external --internal-domains="docs.docker.com,docs-stage.docker.com,localhost:4000" --file-ignore="/^./_site/engine/api/.*$/" --url-ignore="/^/docker-hub/api/latest/.*$/,/^/engine/api/v.+/#.*$/,/^/glossary/.*$/"
# Disabled netlify-deploy due to flakey 502 http errors
# - name: copy static files
# if: github.event.pull_request.head.repo.fork == false