Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hendricius committed Dec 7, 2023
1 parent 948da6f commit 3add645
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/docker_build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,9 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags:
# Latest for main, else branch name
tags: |
type=raw,value=${{ github.ref }},enable=${{ github.ref != format('refs/heads/{0}', 'main') }}
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}

- name: Print tags
run: echo "Tags: ${{ steps.meta.outputs.tags }}"
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/validate-book-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ on:
jobs:
test_building_book:
runs-on: ubuntu-latest
env:
IMAGE: ghcr.io/hendricius/the-sourdough-framework:${{ github.ref_slug }}
env:
IMAGE: ghcr.io/hendricius/the-sourdough-framework:${{ github.event.pull_request.head.ref }}
steps:
- name: Set up git repository
uses: actions/checkout@v3
- name: Build and Push Docker Image
uses: ./.github/workflows/docker_build_push.yml
uses: ./.github/workflows/docker_build_push.yml
- name: Print dependency versions
uses: addnab/docker-run-action@v3
with:
Expand Down

0 comments on commit 3add645

Please sign in to comment.