mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-12-06 09:34:25 -06:00
Simplify build process (#352)
Related to #349. This only builds the docker image on push to main. For pull requests and pushes the whole build is tested.
This commit is contained in:
committed by
GitHub
parent
2f385a82b7
commit
d1b0bbead1
18
.github/workflows/test-book-website.yml
vendored
18
.github/workflows/test-book-website.yml
vendored
@@ -1,11 +1,9 @@
|
||||
name: Test book and website for given image
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
docker-image:
|
||||
required: true
|
||||
type: string
|
||||
on: [push, pull_request]
|
||||
|
||||
env:
|
||||
DOCKER_IMAGE: ghcr.io/${{ github.repository }}:latest
|
||||
|
||||
jobs:
|
||||
test-book-website:
|
||||
@@ -16,7 +14,7 @@ jobs:
|
||||
- name: Print dependency versions
|
||||
uses: addnab/docker-run-action@v3
|
||||
with:
|
||||
image: ${{ inputs.docker-image }}
|
||||
image: ${{ env.DOCKER_IMAGE }}
|
||||
options: -v ${{ github.workspace }}:/app
|
||||
run: |
|
||||
cd /app/book
|
||||
@@ -24,7 +22,7 @@ jobs:
|
||||
- name: Print build variables
|
||||
uses: addnab/docker-run-action@v3
|
||||
with:
|
||||
image: ${{ inputs.docker-image }}
|
||||
image: ${{ env.DOCKER_IMAGE }}
|
||||
options: -v ${{ github.workspace }}:/app
|
||||
run: |
|
||||
cd /app/book
|
||||
@@ -32,7 +30,7 @@ jobs:
|
||||
- name: Test baking the release versions
|
||||
uses: addnab/docker-run-action@v3
|
||||
with:
|
||||
image: ${{ inputs.docker-image }}
|
||||
image: ${{ env.DOCKER_IMAGE }}
|
||||
options: -v ${{ github.workspace }}:/app
|
||||
run: |
|
||||
cd /app/book
|
||||
@@ -48,7 +46,7 @@ jobs:
|
||||
- name: Test building website
|
||||
uses: addnab/docker-run-action@v3
|
||||
with:
|
||||
image: ${{ inputs.docker-image }}
|
||||
image: ${{ env.DOCKER_IMAGE }}
|
||||
options: -v ${{ github.workspace }}:/app
|
||||
run: |
|
||||
cd /app/book
|
||||
|
||||
Reference in New Issue
Block a user