mirror of
https://github.com/decolua/9router.git
synced 2026-05-08 12:01:28 +00:00
ci: trigger only on tag push, keep master trigger commented
This commit is contained in:
27
.github/workflows/docker-publish.yml
vendored
27
.github/workflows/docker-publish.yml
vendored
@@ -2,22 +2,25 @@ name: Build and Push Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
tags:
|
||||
- 'v*'
|
||||
paths:
|
||||
- 'src/**'
|
||||
- 'open-sse/**'
|
||||
- 'public/**'
|
||||
- 'package*.json'
|
||||
- 'next.config.*'
|
||||
- 'Dockerfile'
|
||||
# Uncomment to also build on master pushes (rolling latest).
|
||||
# Pair with concurrency + paths below to avoid excessive builds.
|
||||
# branches:
|
||||
# - master
|
||||
# paths:
|
||||
# - 'src/**'
|
||||
# - 'open-sse/**'
|
||||
# - 'public/**'
|
||||
# - 'package*.json'
|
||||
# - 'next.config.*'
|
||||
# - 'Dockerfile'
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: docker-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
# Uncomment if re-enabling master push trigger.
|
||||
# concurrency:
|
||||
# group: docker-${{ github.ref }}
|
||||
# cancel-in-progress: true
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
|
||||
Reference in New Issue
Block a user