Fix Docker workflow issues (hopefully) (#143)

This hopefully fixes some of the issues of the docker workflow building
the book and website
This commit is contained in:
Hendrik Kleinwaechter
2023-07-09 15:05:30 +02:00
committed by GitHub
parent 58004497bd
commit 46ab05048e
6 changed files with 102 additions and 39 deletions

View File

@@ -9,11 +9,29 @@ jobs:
steps:
- name: Set up git repository
uses: actions/checkout@v3
- name: Bake the book
uses: docker://ghcr.io/hendricius/the-sourdough-framework:latest
- name: Print dependency versions
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/hendricius/the-sourdough-framework:latest
options: -v ${{ github.workspace }}:/app
run: |
cd book
cd /app/book
make show_tools_version
- name: Print build variables
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/hendricius/the-sourdough-framework:latest
options: -v ${{ github.workspace }}:/app
run: |
cd /app/book
make printvars
- name: Bake the book
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/hendricius/the-sourdough-framework:latest
options: -v ${{ github.workspace }}:/app
run: |
cd /app/book
make bake
- name: Release baked book to S3
uses: shallwefootball/s3-upload-action@master

View File

@@ -9,11 +9,29 @@ jobs:
steps:
- name: Set up git repository
uses: actions/checkout@v3
- name: Bake the book
uses: docker://ghcr.io/hendricius/the-sourdough-framework:latest
- name: Print dependency versions
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/hendricius/the-sourdough-framework:latest
options: -v ${{ github.workspace }}:/app
run: |
cd book
cd /app/book
make show_tools_version
- name: Print build variables
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/hendricius/the-sourdough-framework:latest
options: -v ${{ github.workspace }}:/app
run: |
cd /app/book
make printvars
- name: Bake the book
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/hendricius/the-sourdough-framework:latest
options: -v ${{ github.workspace }}:/app
run: |
cd /app/book
make website
- name: Release baked website to S3
uses: shallwefootball/s3-upload-action@master

View File

@@ -0,0 +1,32 @@
name: Validate LaTeX Document
on: [ push, pull_request ]
jobs:
test_building_book:
runs-on: ubuntu-latest
steps:
- name: Set up git repository
uses: actions/checkout@v3
- name: Print dependency versions
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/hendricius/the-sourdough-framework:latest
options: -v ${{ github.workspace }}:/app
run: |
cd /app/book
make show_tools_version
- name: Print build variables
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/hendricius/the-sourdough-framework:latest
options: -v ${{ github.workspace }}:/app
run: |
cd /app/book
make printvars
- name: Test baking the release versions
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/hendricius/the-sourdough-framework:latest
options: -v ${{ github.workspace }}:/app
run: |
cd /app/book
make -j build_pdf build_serif_ebook

View File

@@ -1,14 +0,0 @@
name: Validate LaTeX Document
on: [ push, pull_request ]
jobs:
test_building_book:
runs-on: ubuntu-latest
steps:
- name: Set up git repository
uses: actions/checkout@v3
- name: Test baking the release versions
uses: docker://ghcr.io/hendricius/the-sourdough-framework:latest
with:
run: |
cd book
make -j build_pdf build_serif_ebook