mirror of
https://github.com/librespeed/speedtest.git
synced 2026-06-28 21:02:27 +00:00
ci: fix tags
Signed-off-by: rare-magma <rare-magma@posteo.eu>
This commit is contained in:
parent
301e3f5234
commit
e488bc44f6
1 changed files with 7 additions and 6 deletions
13
.github/workflows/docker-publish.yml
vendored
13
.github/workflows/docker-publish.yml
vendored
|
|
@ -32,8 +32,10 @@ jobs:
|
|||
include:
|
||||
- dockerfile: ./Dockerfile
|
||||
image: ghcr.io/${{ github.repository }}
|
||||
flavour: ""
|
||||
- dockerfile: ./Dockerfile.alpine
|
||||
image: ghcr.io/${{ github.repository }}-alpine
|
||||
image: ghcr.io/${{ github.repository }}
|
||||
flavour: "-alpine"
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
|
@ -69,12 +71,11 @@ jobs:
|
|||
with:
|
||||
images: ${{ matrix.image }}
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
type=ref,event=pr
|
||||
# set latest tag for default branch
|
||||
type=raw,value=latest,enable={{is_default_branch}}
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=raw,value=latest${{ matrix.flavour }},enable={{is_default_branch}}
|
||||
type=semver,pattern={{major}}${{ matrix.flavour }}
|
||||
type=semver,pattern={{major}}.{{minor}}${{ matrix.flavour }}
|
||||
type=semver,pattern={{major}}.{{minor}}.{{patch}}${{ matrix.flavour }}
|
||||
|
||||
# Build and push Docker image with Buildx (don't push on PR)
|
||||
# https://github.com/docker/build-push-action
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue