fix: backend and fronend tags
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user