|
@@ -26,6 +26,14 @@ env:
|
|
|
jobs:
|
|
jobs:
|
|
|
build:
|
|
build:
|
|
|
runs-on: ubuntu-latest
|
|
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:
|
|
permissions:
|
|
|
contents: read
|
|
contents: read
|
|
|
packages: write
|
|
packages: write
|
|
@@ -59,7 +67,7 @@ jobs:
|
|
|
id: meta
|
|
id: meta
|
|
|
uses: docker/metadata-action@v5
|
|
uses: docker/metadata-action@v5
|
|
|
with:
|
|
with:
|
|
|
- images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
|
|
|
|
|
|
+ images: ${{ matrix.image }}
|
|
|
tags: |
|
|
tags: |
|
|
|
type=ref,event=branch
|
|
type=ref,event=branch
|
|
|
type=ref,event=pr
|
|
type=ref,event=pr
|
|
@@ -75,6 +83,7 @@ jobs:
|
|
|
uses: docker/build-push-action@v5
|
|
uses: docker/build-push-action@v5
|
|
|
with:
|
|
with:
|
|
|
context: .
|
|
context: .
|
|
|
|
|
+ file: ${{ matrix.dockerfile }}
|
|
|
platforms: linux/amd64,linux/arm64
|
|
platforms: linux/amd64,linux/arm64
|
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
tags: ${{ steps.meta.outputs.tags }}
|