mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-09 12:41:12 -06:00
Change docker build process (#346)
Uses latest image by default. For releasing the book and website a new image is built and stored as "latest".
This commit is contained in:
committed by
GitHub
parent
bf4456ca80
commit
49d93f7573
@@ -1,14 +1,11 @@
|
|||||||
name: Test building book and website with custom image
|
name: Test building book and website
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-image:
|
|
||||||
uses: ./.github/workflows/docker-build-push.yml
|
|
||||||
|
|
||||||
test-building-book-website:
|
test-building-book-website:
|
||||||
needs: build-and-push-image
|
|
||||||
uses: ./.github/workflows/test-book-website.yml
|
uses: ./.github/workflows/test-book-website.yml
|
||||||
with:
|
with:
|
||||||
docker-image: ghcr.io/${{ github.repository }}:${{ github.event.pull_request.head.ref }}
|
docker-image: ghcr.io/${{ github.repository }}:latest
|
||||||
|
|||||||
4
.github/workflows/test-book-website-push.yml
vendored
4
.github/workflows/test-book-website-push.yml
vendored
@@ -4,11 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-image:
|
|
||||||
uses: ./.github/workflows/docker-build-push.yml
|
|
||||||
|
|
||||||
test-building-book-website:
|
test-building-book-website:
|
||||||
needs: build-and-push-image
|
|
||||||
uses: ./.github/workflows/test-book-website.yml
|
uses: ./.github/workflows/test-book-website.yml
|
||||||
with:
|
with:
|
||||||
docker-image: ghcr.io/${{ github.repository }}:latest
|
docker-image: ghcr.io/${{ github.repository }}:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user