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:
Hendrik Kleinwaechter
2024-04-11 16:03:16 +02:00
committed by GitHub
parent bf4456ca80
commit 49d93f7573
2 changed files with 2 additions and 9 deletions

View File

@@ -1,14 +1,11 @@
name: Test building book and website with custom image
name: Test building book and website
on:
pull_request:
jobs:
build-and-push-image:
uses: ./.github/workflows/docker-build-push.yml
test-building-book-website:
needs: build-and-push-image
uses: ./.github/workflows/test-book-website.yml
with:
docker-image: ghcr.io/${{ github.repository }}:${{ github.event.pull_request.head.ref }}
docker-image: ghcr.io/${{ github.repository }}:latest

View File

@@ -4,11 +4,7 @@ on:
push:
jobs:
build-and-push-image:
uses: ./.github/workflows/docker-build-push.yml
test-building-book-website:
needs: build-and-push-image
uses: ./.github/workflows/test-book-website.yml
with:
docker-image: ghcr.io/${{ github.repository }}:latest