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: jobs:
dockerhub: dockerhub:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 20
steps: steps:
- -
name: Checkout name: Checkout

View File

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

View File

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

View File

@ -1,10 +1,10 @@
# build stage # 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 PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH" ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable RUN corepack enable
RUN corepack use pnpm@8 RUN corepack use pnpm@9
WORKDIR /app WORKDIR /app
@ -15,7 +15,7 @@ COPY . .
RUN pnpm build RUN pnpm build
# production stage # production stage
FROM alpine:3.19 FROM alpine:3.20
ENV GID 1000 ENV GID 1000
ENV UID 1000 ENV UID 1000