ci: trigger only on tag push, keep master trigger commented
This commit is contained in:
parent
91c1bc848e
commit
5fc77fbf8c
1 changed files with 15 additions and 12 deletions
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:
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue