Skip to content

Commit bbd62af

Browse files
committed
1.0.1
修复炼器无效问题 修复世界BOSS对战问题 修复无尽塔自动对战失效问题 修复鸿蒙商店购买装备之后跳转问题 更新Docker镜像架构为amd64何arm64
1 parent b0e3c86 commit bbd62af

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.github/workflows/xiuxian-game.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: 设置Docker Buildx
2323
uses: docker/setup-buildx-action@v2
2424
with:
25-
platforms: linux/amd64,linux/arm64 # 严格限制这两个
25+
platforms: linux/amd64,linux/arm64
2626

2727
- name: 登录 GitHub Container Registry
2828
uses: docker/login-action@v2
@@ -32,9 +32,9 @@ jobs:
3232
password: ${{ secrets.GHCR_TOKEN }}
3333

3434
- name: 构建并推送多架构Docker镜像
35-
uses: docker/build-push-action@v3 # 或者考虑升级到 v4 或 v5,如果可用
35+
uses: docker/build-push-action@v3
3636
with:
3737
context: .
38-
platforms: linux/amd64,linux/arm64 # 严格与上面保持一致
38+
platforms: linux/amd64,linux/arm64
3939
push: true
4040
tags: ghcr.io/${{ github.repository_owner }}/vue-xiuxiangame:latest

Dockerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
# 构建阶段
2-
# 尝试使用 node:lts (长期支持版本) 或 node:20 (Node.js 20的默认Debian基础镜像)
32
FROM node:lts AS build
4-
# 或者 FROM node:20 AS build
53
WORKDIR /app
64
COPY . .
75
RUN npm install && \
86
npm run build
97

108
# 运行阶段
11-
# 保持与构建阶段一致
129
FROM node:lts AS runtime
13-
# 或者 FROM node:20 AS runtime
1410
WORKDIR /app
1511
COPY --from=build /app/dist /app
1612
RUN npm install -g http-server

0 commit comments

Comments
 (0)