diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 602284f..b609db6 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -1,9 +1,14 @@ name: Publish Docker images +# Images are published from a *published release*, never from a bare tag push. +# A tag that is later deleted (the versioning rule consolidates unreleased tags) +# would otherwise leave its image tags behind in GHCR forever, and dependency +# bots read those as a newer version. See issue #87. on: push: branches: [main] - tags: ['v*'] + release: + types: [published] workflow_dispatch: permissions: