fix: tag Docker images as latest + semver instead of branch name

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Former-commit-id: c84cba927a
This commit is contained in:
anoracleofra-code
2026-03-09 20:54:09 -06:00
parent d4c725de6e
commit 97208a01a2
+8
View File
@@ -40,6 +40,10 @@ jobs:
uses: docker/metadata-action@v5.0.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-frontend
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push Docker image
id: build-and-push
@@ -79,6 +83,10 @@ jobs:
uses: docker/metadata-action@v5.0.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-backend
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push Docker image
id: build-and-push