copy files to the host for testing with HTMLProofer

This commit is contained in:
Aidan Feldman 2021-01-20 18:26:55 -05:00 committed by Sebastiaan van Stijn
parent f78fca2fba
commit 5338b19ef2
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,11 @@ jobs:
- uses: actions/checkout@v2
- 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
- name: check for broken links
uses: chabad360/htmlproofer@master
with: