woodpecker workflow test
All checks were successful
ci/woodpecker/manual/build Pipeline was successful

This commit is contained in:
Lio 2025-11-18 22:03:27 +01:00
parent 4df091aab5
commit 9707700301
2 changed files with 35 additions and 0 deletions

11
.woodpecker/build.yml Normal file
View file

@ -0,0 +1,11 @@
steps:
- name: Build and Push Image
when:
- event: push
branch: main
image: woodpeckerci/plugin-docker-buildx
settings:
repo: registry.lio.systems/wrath
registry: registry.lio.systems
dockerfile: Dockerfile
tag: dev

24
Dockerfile Normal file
View file

@ -0,0 +1,24 @@
FROM oven/bun:latest as base
WORKDIR /usr/src/app
FROM base AS install
RUN mkdir -p /temp/dev
COPY package.json bun.lock /temp/dev/
RUN cd /temp/dev && bun install --frozen-lockfile
RUN mkdir -p /temp/prod
COPY package.json bun.lock /temp/prod/
RUN cd /temp/prod && bun install --frozen-lockfile --production
FROM base AS build
COPY --from=install /temp/dev/node_modules node_modules
COPY . .
RUN bun run build
FROM base AS release
COPY --from=install /temp/prod/node_modules node_modules
COPY --from=build /usr/src/app/dist .
ENTRYPOINT [ "bun", "run", "./server/entry.mjs" ]