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:
Romuald Członkowski
2025-07-14 18:39:39 +02:00
committed by GitHub
parent b9eca2371a
commit fcd92d410e

View File

@@ -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