Skip to content

Commit

Permalink
github action build all three Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Hiltl committed Aug 22, 2024
1 parent 6d6b020 commit 547207c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/publish-ghcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ jobs:
build_and_publish:
runs-on: ubuntu-latest

strategy:
matrix:
include:
- dockerfile: Dockerfile
suffix: ""
- dockerfile: Dockerfile.sqlite
suffix: "-sqlite"
- dockerfile: Dockerfile.litefs
suffix: "-litefs"

permissions:
contents: read
packages: write
Expand All @@ -34,11 +44,14 @@ jobs:
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}}${{ matrix.suffix }}
- name: Build and push Docker image
id: push
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
file: ${{ matrix.dockerfile }}
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
Expand Down

0 comments on commit 547207c

Please sign in to comment.