mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-11 21:51:12 -06:00
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:
committed by
GitHub
parent
58004497bd
commit
46ab05048e
24
.github/workflows/release-book.yml
vendored
24
.github/workflows/release-book.yml
vendored
@@ -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
|
||||
|
||||
24
.github/workflows/release-website.yml
vendored
24
.github/workflows/release-website.yml
vendored
@@ -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
|
||||
|
||||
32
.github/workflows/validate-book-build.yml
vendored
Normal file
32
.github/workflows/validate-book-build.yml
vendored
Normal 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
|
||||
14
.github/workflows/validate.yml
vendored
14
.github/workflows/validate.yml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user