Skip to content

Commit

Permalink
Rever to v3 of tech-docs-github-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMillar-MOJ committed Oct 12, 2024
1 parent afd91e2 commit eb035f1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
build:
runs-on: ubuntu-latest
container:
image: ministryofjustice/tech-docs-github-pages-publisher:v4.0.0
image: ministryofjustice/tech-docs-github-pages-publisher:v3
permissions:
contents: read
steps:
Expand All @@ -37,7 +37,7 @@ jobs:
rm -rf docs
- name: Compile Markdown to HTML and create artifact
run: |
/usr/local/bin/package
/scripts/deploy.sh
- name: Upload artifact to be published
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -70,6 +70,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: github-pages
path: github-pages
- name: Unpack files and check URL links
run: |
cd github-pages
Expand Down
12 changes: 9 additions & 3 deletions docs/makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
IMAGE := ministryofjustice/tech-docs-github-pages-publisher:v4.0.0
IMAGE := ministryofjustice/tech-docs-github-pages-publisher:v3

# Use this to run a local instance of the documentation site, while editing
.PHONY: preview check
Expand All @@ -8,10 +8,16 @@ preview:
-v $$(pwd)/config:/app/config \
-v $$(pwd)/source:/app/source \
-p 4567:4567 \
-it $(IMAGE) /usr/local/bin/preview
-it $(IMAGE) /scripts/preview.sh

deploy:
docker run --rm \
-v $$(pwd)/config:/app/config \
-v $$(pwd)/source:/app/source \
-it $(IMAGE) /usr/local/bin/package
-it $(IMAGE) /scripts/deploy.sh

check:
docker run --rm \
-v $$(pwd)/config:/app/config \
-v $$(pwd)/source:/app/source \
-it $(IMAGE) /scripts/check-url-links.sh

0 comments on commit eb035f1

Please sign in to comment.