chore(ci): update github action

This commit is contained in:
Ran
2026-02-24 16:58:04 +08:00
parent 3e3379a869
commit eeef8a46c2
+4 -4
View File
@@ -2,7 +2,7 @@ name: Docker
on:
push:
branches: [main]
branches: [main, "v*.*"]
tags: ["v*"]
paths-ignore:
- "docs/**"
@@ -11,7 +11,7 @@ on:
release:
types: [published]
pull_request:
branches: [main]
branches: [main, "v*.*"]
paths-ignore:
- "docs/**"
- "**.md"
@@ -23,7 +23,7 @@ concurrency:
cancel-in-progress: true
env:
PUSH: ${{ github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') || github.event_name == 'release') }}
PUSH: ${{ github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/v') || startsWith(github.ref, 'refs/tags/') || github.event_name == 'release') }}
REGISTRY: ghcr.io
permissions:
@@ -126,7 +126,7 @@ jobs:
merge:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') || github.event_name == 'release')
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/v') || startsWith(github.ref, 'refs/tags/') || github.event_name == 'release')
needs: build
strategy:
matrix: