Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

Fix docker-publish: stop lite job tagging latest so it no longer clobbers the full image's latest tag

Murtaza Nasird5d34fe27ec1
diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml
index e5d1a218..5581e893 100644
--- a/.github/workflows/docker-publish.yml
+++ b/.github/workflows/docker-publish.yml
@@ -163,6 +163,12 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
+ # Never tag the lite image as `latest`; `latest` is the full image,
+ # set only by the build job above. Without this, metadata-action's
+ # default `latest=auto` makes the lite job also push `latest`, and
+ # since it runs last it clobbers the full image's `latest`.
+ flavor: |
+ latest=false
tags: |
type=raw,value=lite,enable=${{ github.event_name == 'workflow_dispatch' || github.event_name == 'release' }}
type=match,pattern=v(.*),group=1,suffix=-lite