ci: trigger only on tag push, keep master trigger commented

This commit is contained in:
Doan Minh Tu 2026-03-11 06:56:21 +07:00
parent 91c1bc848e
commit 5fc77fbf8c

View file

@ -2,22 +2,25 @@ name: Build and Push Docker Image
on: on:
push: push:
branches:
- master
tags: tags:
- 'v*' - 'v*'
paths: # Uncomment to also build on master pushes (rolling latest).
- 'src/**' # Pair with concurrency + paths below to avoid excessive builds.
- 'open-sse/**' # branches:
- 'public/**' # - master
- 'package*.json' # paths:
- 'next.config.*' # - 'src/**'
- 'Dockerfile' # - 'open-sse/**'
# - 'public/**'
# - 'package*.json'
# - 'next.config.*'
# - 'Dockerfile'
workflow_dispatch: workflow_dispatch:
concurrency: # Uncomment if re-enabling master push trigger.
group: docker-${{ github.ref }} # concurrency:
cancel-in-progress: true # group: docker-${{ github.ref }}
# cancel-in-progress: true
env: env:
REGISTRY: ghcr.io REGISTRY: ghcr.io