From 7509eb18c5d34ccd020a610bdcaae25d5c696cc7 Mon Sep 17 00:00:00 2001 From: Ricardo Campos Date: Sun, 5 Apr 2026 17:00:21 -0300 Subject: [PATCH] chore: address tag and number different in the backend image --- .github/workflows/deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2cf6a08..4129266 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -54,7 +54,8 @@ jobs: backend_image="${{ github.event.inputs.backend_image }}" frontend_image="${{ github.event.inputs.frontend_image }}" - latest_backend_tag="$(git tag --list '[0-9]*' | sort -V | tail -n1)" + latest_backend_tag_tmp="$(git tag --list 'api-v*' | sort -V | tail -n1)" + latest_backend_tag="${latest_backend_tag_tmp#api-v}" latest_frontend_tag="$(git tag --list 'app-v*' | sort -V | tail -n1))" if [ -z "$latest_backend_tag" ]; then