ci: revert to sing arch build
This commit is contained in:
parent
b8577e9d46
commit
6a59de3e0a
|
@ -13,15 +13,8 @@ jobs:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v3
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
|
||||||
driver: docker-container
|
|
||||||
platforms: linux/amd64 # Target standard PC architecture
|
|
||||||
install: true
|
|
||||||
|
|
||||||
- name: Log in to private registry
|
- name: Log in to private registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
@ -40,7 +33,6 @@ jobs:
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64 # Explicitly specify target architecture
|
|
||||||
push: ${{ gitea.event_name != 'pull_request' }}
|
push: ${{ gitea.event_name != 'pull_request' }}
|
||||||
tags: ${{ steps.meta.outputs.TAG }}
|
tags: ${{ steps.meta.outputs.TAG }}
|
||||||
# Add build caching for faster builds
|
# Add build caching for faster builds
|
||||||
|
|
12
Dockerfile
12
Dockerfile
|
@ -1,15 +1,11 @@
|
||||||
# Use build arguments for platform specification
|
FROM oven/bun AS build
|
||||||
ARG BUILDPLATFORM=linux/amd64
|
|
||||||
|
|
||||||
# First stage: build
|
|
||||||
FROM --platform=${BUILDPLATFORM} node:22-bullseye-slim AS build
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install
|
RUN bun install
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN bun run build
|
||||||
|
|
||||||
FROM --platform=${BUILDPLATFORM} nginx:alpine AS runtime
|
FROM nginx:alpine AS runtime
|
||||||
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
|
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
|
||||||
COPY --from=build /app/dist /usr/share/nginx/html
|
COPY --from=build /app/dist /usr/share/nginx/html
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
Loading…
Reference in New Issue
Block a user