fix: add platforms

This commit is contained in:
hamster1963 2024-09-23 13:13:14 +08:00
parent d38a45cd80
commit 99ec75b3eb
4 changed files with 2 additions and 8 deletions

View File

@ -41,6 +41,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

View File

@ -1,10 +1,4 @@
# 添加多架构支持
FROM --platform=linux/amd64 node:21-alpine AS base-amd64
FROM --platform=linux/arm64 node:21-alpine AS base-arm64
# 选择基础镜像
ARG TARGETARCH
FROM base-${TARGETARCH} AS base
FROM node:21-alpine AS base
FROM base AS deps
RUN apk add --no-cache libc6-compat

BIN
bun.lockb

Binary file not shown.

View File

@ -6,7 +6,6 @@ import { error } from "console";
import { unstable_noStore as noStore } from "next/cache";
import getEnv from "./env-entry";
export async function GetNezhaData() {
noStore();