fix: backend and fronend tags

This commit is contained in:
2026-04-05 16:51:51 -03:00
committed by GitHub
parent 8fb211a4ce
commit 2b9467ac02
+3 -3
View File
@@ -54,7 +54,7 @@ jobs:
backend_image="${{ github.event.inputs.backend_image }}"
frontend_image="${{ github.event.inputs.frontend_image }}"
latest_backend_tag="$(git tag --list 'api-v*' --sort=-v:refname | head -n 1)"
latest_backend_tag="$(git tag --list 'api-*' --sort=-v:refname | head -n 1)"
latest_frontend_tag="$(git tag --list 'app-v*' --sort=-v:refname | head -n 1)"
if [ -z "$latest_backend_tag" ]; then
@@ -68,10 +68,10 @@ jobs:
fi
if [ -z "$backend_image" ]; then
backend_image="ghcr.io/${{ github.repository }}/backend:$latest_backend_tag"
backend_image="ghcr.io/${{ github.repository }}/api:$latest_backend_tag"
fi
if [ -z "$frontend_image" ]; then
frontend_image="ghcr.io/${{ github.repository }}/frontend:$latest_frontend_tag"
frontend_image="ghcr.io/${{ github.repository }}/app:$latest_frontend_tag"
fi
echo "Resolved backend_image=$backend_image"