fix: Correct Docker tag format in metadata action

- Add format=short to SHA tags to prevent malformed tags
- Standardize dev tag naming across workflows (was 'development')
- Ensure branch name is properly included in SHA prefix
This commit is contained in:
Wikid82
2025-11-18 17:25:16 -05:00
parent 95823204a6
commit 8716919e22
2 changed files with 4 additions and 4 deletions

View File

@@ -48,14 +48,14 @@ jobs:
tags: |
# Tag 'latest' for main branch
type=raw,value=latest,enable={{is_default_branch}}
# Tag 'development' for development branch
type=raw,value=development,enable=${{ github.ref == 'refs/heads/development' }}
# Tag 'dev' for development branch
type=raw,value=dev,enable=${{ github.ref == 'refs/heads/development' }}
# Semver tags for version releases (v1.0.0 -> 1.0.0, 1.0, 1)
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
# SHA for all builds
type=sha,prefix={{branch}}-
type=sha,prefix={{branch}}-,format=short
- name: Build and push Docker image
id: build-and-push