🔨 Update docker workflow, to only publish tag when new

This commit is contained in:
Alicia Sykes 2024-05-25 14:58:43 +01:00
parent d2b68fbd58
commit 86adcbd8dd
1 changed files with 2 additions and 3 deletions

View File

@ -1,11 +1,10 @@
# Scans, builds and releases a multi-architecture docker image
name: 🐳 Build + Publish Multi-Platform Image
on:
workflow_dispatch:
push:
branches: ['master']
tags: [v*]
tags: ['v*']
paths:
- '**.js'
- 'src/**'
@ -48,7 +47,7 @@ jobs:
ghcr.io/${{ env.GH_IMAGE }}
tags: |
type=ref,event=tag,prefix=release-,suffix={{tag}}
type=semver,pattern={{raw}},value=${{ steps.package-version.outputs.version }}
type=semver,pattern={{major}}.x,value=${{ steps.package-version.outputs.version }}
labels: |
maintainer=Lissy93
org.opencontainers.image.title=Dashy