From ff5efbc1cd0d28d46c3427b021846ae1557c7847 Mon Sep 17 00:00:00 2001 From: Ricardo Campos Date: Sun, 5 Apr 2026 16:56:07 -0300 Subject: [PATCH] fix: get proper image tags --- .github/workflows/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1d8dadd..6b3154f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -54,11 +54,11 @@ jobs: backend_image="${{ github.event.inputs.backend_image }}" frontend_image="${{ github.event.inputs.frontend_image }}" - 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)" + latest_backend_tag="$(git tag --list 'v[0-9]*' | sort -V | tail -n1)" + latest_frontend_tag="$(git tag --list 'app-v*' | sort -V | tail -n1))" if [ -z "$latest_backend_tag" ]; then - echo "No backend tag found matching api-v*" >&2 + echo "No backend tag found matching v[0-9]*" >&2 exit 1 fi