fix: exclude documentation changes from Docker builds and fix tag generation (#49)
- Add paths-ignore to skip Docker builds for documentation-only changes - Remove problematic branch prefix from SHA tags to fix invalid tag format - This prevents unnecessary builds for changes to .md files, FUNDING.yml, etc.
This commit is contained in:
committed by
GitHub
parent
b9eca2371a
commit
fcd92d410e
18
.github/workflows/docker-build.yml
vendored
18
.github/workflows/docker-build.yml
vendored
@@ -7,9 +7,25 @@ on:
|
||||
- main
|
||||
tags:
|
||||
- 'v*'
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
- '.github/FUNDING.yml'
|
||||
- '.github/ISSUE_TEMPLATE/**'
|
||||
- '.github/pull_request_template.md'
|
||||
- 'LICENSE'
|
||||
- 'ATTRIBUTION.md'
|
||||
- 'docs/**'
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
- '.github/FUNDING.yml'
|
||||
- '.github/ISSUE_TEMPLATE/**'
|
||||
- '.github/pull_request_template.md'
|
||||
- 'LICENSE'
|
||||
- 'ATTRIBUTION.md'
|
||||
- 'docs/**'
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
@@ -56,7 +72,7 @@ jobs:
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
type=sha,prefix={{branch}}-,format=short
|
||||
type=sha,format=short
|
||||
type=raw,value=latest,enable={{is_default_branch}}
|
||||
|
||||
- name: Build and push Docker image
|
||||
|
||||
Reference in New Issue
Block a user