From 5338b19ef282a55c33efacca925c076e8e6caae0 Mon Sep 17 00:00:00 2001 From: Aidan Feldman Date: Wed, 20 Jan 2021 18:26:55 -0500 Subject: [PATCH] copy files to the host for testing with HTMLProofer --- .github/workflows/build-pr.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index 11b44a1c05..df8ae1df50 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -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: