add commit SHA build argument to frontend Docker builds in pre-push hook and Makefile, and introduce version bumping targets for release workflow
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user