Skip to content

Commit

Permalink
fix(ci) run build stage on build platform arch
Browse files Browse the repository at this point in the history
  • Loading branch information
bastienwirtz committed Oct 17, 2024
1 parent 08bc4f4 commit 0d0df3d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
jobs:
dockerhub:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
-
name: Checkout
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
-
name: Checkout
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
-
name: Checkout
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -15,7 +15,7 @@ COPY . .
RUN pnpm build

# production stage
FROM alpine:3.19
FROM alpine:3.20

ENV GID 1000
ENV UID 1000
Expand Down

0 comments on commit 0d0df3d

Please sign in to comment.