ci: restrict tag triggers to full semver

- Prevent the floating v1 major tag from cutting a goreleaser release
  or a docker image build
This commit is contained in:
Bo-Yi Wu
2026-08-16 10:57:44 +08:00
parent 214f06cfa3
commit 4023d256c8
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -5,7 +5,8 @@ on:
branches:
- master
tags:
- "v*"
# full semver only; the floating major tag (v1) must not trigger builds
- "v[0-9]*.[0-9]*.[0-9]*"
pull_request:
branches:
- master
+2 -1
View File
@@ -3,7 +3,8 @@ name: Goreleaser
on:
push:
tags:
- "*"
# full semver only; the floating major tag (v1) must not cut a release
- "v[0-9]*.[0-9]*.[0-9]*"
permissions:
contents: write