🔨 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

View File

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