From 348494dab4d43a87f3d416292788a3717c53f9eb Mon Sep 17 00:00:00 2001 From: rare-magma Date: Sun, 2 Jun 2024 14:38:38 +0200 Subject: [PATCH] ci: build alpine docker image Signed-off-by: rare-magma --- .github/workflows/docker-publish.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 4f89e48..99b15f1 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -26,6 +26,14 @@ env: jobs: build: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - dockerfile: ./Dockerfile + image: ghcr.io/${{ github.repository }} + - dockerfile: ./Dockerfile.alpine + image: ghcr.io/${{ github.repository }}-alpine permissions: contents: read packages: write @@ -59,7 +67,7 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + images: ${{ matrix.image }} tags: | type=ref,event=branch type=ref,event=pr @@ -75,6 +83,7 @@ jobs: uses: docker/build-push-action@v5 with: context: . + file: ${{ matrix.dockerfile }} platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }}