mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-08-31 22:36:23 +00:00
- Implemented `getPostById` API function to fetch a post by its ID. - Refactored the main page to use a new `BlogHome` component for better organization. - Added loading state and sorting functionality for posts on the blog home page. - Integrated label fetching and display on the blog home page. - Enhanced the blog card component with improved layout and statistics display. - Updated the navbar to use dynamic configuration values. - Added Docker support with a comprehensive build and push workflow. - Created a custom hook `useStoredState` for managing local storage state. - Added a new page for displaying individual posts with metadata generation. - Removed unused components and files to streamline the codebase.
34 lines
730 B
Makefile
34 lines
730 B
Makefile
FRONTEND_IMAGE = snowykami/neo-blog-frontend:latest
|
|
BACKEND_IMAGE = snowykami/neo-blog-backend:latest
|
|
|
|
# 镜像名
|
|
FRONTEND_IMAGE = snowykami/neo-blog-frontend:latest
|
|
BACKEND_IMAGE = snowykami/neo-blog-backend:latest
|
|
|
|
# 构建前端镜像
|
|
.PHONY: build-frontend
|
|
build-frontend:
|
|
docker build -t $(FRONTEND_IMAGE) ./web
|
|
|
|
# 构建后端镜像
|
|
.PHONY: build-backend
|
|
build-backend:
|
|
docker build -t $(BACKEND_IMAGE) .
|
|
|
|
# 构建全部镜像
|
|
.PHONY: build
|
|
build: build-frontend build-backend
|
|
|
|
# 推送前端镜像
|
|
.PHONY: push-frontend
|
|
push-frontend:
|
|
docker push $(FRONTEND_IMAGE)
|
|
|
|
# 推送后端镜像
|
|
.PHONY: push-backend
|
|
push-backend:
|
|
docker push $(BACKEND_IMAGE)
|
|
|
|
# 推送全部镜像
|
|
.PHONY: push
|
|
push: push-frontend push-backend |