From 6c911fd67fa55548173678f08504541fede52299 Mon Sep 17 00:00:00 2001 From: SaelixCode Date: Tue, 24 Mar 2026 18:48:21 -0400 Subject: [PATCH] fix(ci): trigger docker-publish on v* tag push instead of GitHub Release event --- .github/workflows/docker-publish.yml | 10 +++++----- CHANGELOG.md | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 4a2165d3..867f18ea 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -4,8 +4,8 @@ on: push: branches: - develop - release: - types: [published] + tags: + - 'v*' workflow_dispatch: jobs: @@ -38,9 +38,9 @@ jobs: tags: | # If pushing to develop, tag as 'dev' type=raw,value=dev,enable=${{ github.ref == 'refs/heads/develop' }} - # If a release is published, tag as 'latest' and the specific version - type=raw,value=latest,enable=${{ github.event_name == 'release' }} - type=semver,pattern={{version}},enable=${{ github.event_name == 'release' }} + # If pushing a v* tag, tag as 'latest' and the specific semver version + type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') }} + type=semver,pattern={{version}},enable=${{ startsWith(github.ref, 'refs/tags/v') }} - name: Build and push Docker image uses: docker/build-push-action@v5 diff --git a/CHANGELOG.md b/CHANGELOG.md index 62b3dd33..9803c796 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed +- **fix(ci):** `docker-publish.yml` was triggered by `release: types: [published]` (GitHub Release event) instead of `push: tags: v*` — pushing a git tag never fired the workflow. Changed trigger to `push: tags: v*` and updated `enable` conditions from `github.event_name == 'release'` to `startsWith(github.ref, 'refs/tags/v')` so any `v*` tag push automatically builds and publishes `latest` + semver tags to Docker Hub without requiring a manual GitHub Release. + --- ## [0.1.0] - 2026-03-24