add commit SHA build argument to frontend Docker builds in pre-push hook and Makefile, and introduce version bumping targets for release workflow
Some checks failed
Build and Push Docker Images / build-backend (push) Has been cancelled
Build and Push Docker Images / build-frontend (push) Has been cancelled

This commit is contained in:
Egor Pozharov
2026-05-05 14:40:27 +06:00
parent c39bde0b10
commit 48a32d50fd
4 changed files with 25 additions and 8 deletions

View File

@@ -4,6 +4,7 @@
REGISTRY="gitea.chedius.ru/chedius"
PLATFORM="linux/amd64"
COMMIT_SHA=$(git rev-parse --short=12 HEAD 2>/dev/null || echo dev)
echo "🔨 Building Docker images..."
@@ -14,7 +15,7 @@ docker build --platform $PLATFORM -t $REGISTRY/delivery-tracker/backend:latest .
}
# Build frontend
docker build --platform $PLATFORM -t $REGISTRY/delivery-tracker/frontend:latest ./frontend || {
docker build --platform $PLATFORM --build-arg GITEA_SHA=$COMMIT_SHA -t $REGISTRY/delivery-tracker/frontend:latest ./frontend || {
echo "❌ Frontend build failed"
exit 1
}