Skip to content

Commit

Permalink
Change docker build process (#346)
Browse files Browse the repository at this point in the history
Uses latest image by default. For releasing the book and website a new
image is built and stored as "latest".
  • Loading branch information
hendricius authored Apr 11, 2024
1 parent bf4456c commit 49d93f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/test-book-website-pull-request.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 0 additions & 4 deletions .github/workflows/test-book-website-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 49d93f7

Please sign in to comment.