mirror of
https://github.com/librespeed/speedtest.git
synced 2026-10-20 23:30:51 +00:00
ci: build alpine docker image
Signed-off-by: rare-magma <rare-magma@posteo.eu>
This commit is contained in:
parent
611c1a1743
commit
348494dab4
1 changed files with 10 additions and 1 deletions
11
.github/workflows/docker-publish.yml
vendored
11
.github/workflows/docker-publish.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue