fix(ci) run build stage on build platform arch

This commit is contained in:
Bastien Wirtz 2024-10-17 09:39:28 +02:00
parent 08bc4f417d
commit 0d0df3d568
4 changed files with 6 additions and 3 deletions

View File

@ -8,6 +8,7 @@ on:
jobs:
dockerhub:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
-
name: Checkout

View File

@ -12,6 +12,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
-
name: Checkout

View File

@ -9,6 +9,7 @@ jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
-
name: Checkout

View File

@ -1,10 +1,10 @@
# build stage
FROM node:18-alpine3.19 as build-stage
FROM --platform=$BUILDPLATFORM node:22-alpine3.20 AS build-stage
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
RUN corepack use pnpm@8
RUN corepack use pnpm@9
WORKDIR /app
@ -15,7 +15,7 @@ COPY . .
RUN pnpm build
# production stage
FROM alpine:3.19
FROM alpine:3.20
ENV GID 1000
ENV UID 1000