Skip to content

Commit e2a4cba

Browse files
authored
chore(deploy): fix sort order when listing image to deploy
1 parent 70dfa7b commit e2a4cba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ jobs:
5454
backend_image='${{ github.event.inputs.backend_image }}'
5555
frontend_image='${{ github.event.inputs.frontend_image }}'
5656
57-
latest_backend_tag="$(git tag --list 'api-v*' --sort=-v:refname | tail -n1)"
58-
latest_frontend_tag="$(git tag --list 'app-v*' --sort=-v:refname | tail -n1)"
57+
latest_backend_tag="$(git tag --list 'api-v*' --sort=-v:refname | head -n 1)"
58+
latest_frontend_tag="$(git tag --list 'app-v*' --sort=-v:refname | head -n 1)"
5959
6060
if [ -z "$latest_backend_tag" ]; then
6161
echo "No backend tag found matching api-v*" >&2

0 commit comments

Comments
 (0)