Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
docker-publish:
runs-on: ubuntu-latest
needs: test
Copy link

Copilot AI Oct 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow references a 'test' job that doesn't exist in this file, which will cause the docker-publish job to fail. Either add the missing test job or remove the 'needs: test' dependency.

Suggested change
needs: test

Copilot uses AI. Check for mistakes.
if: github.ref == 'refs/heads/main'
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- uses: actions/checkout@v4

# Enable QEMU for cross-building arm64 on amd64 runner
- uses: docker/setup-qemu-action@v3

- uses: docker/setup-buildx-action@v3

- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:latest
platforms: linux/amd64,linux/arm64
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM node:22-slim

WORKDIR /app

COPY package.json yarn.lock ./

RUN corepack enable yarn
RUN yarn install

COPY . .

ENV NODE_ENV=production
RUN yarn build

EXPOSE 3000

CMD ["yarn", "start:prod"]
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"dev": "vite dev",
"build": "vite build && tsc --noEmit",
"start": "vite start",
"start:prod": "node .output/server/index.mjs",
"lint": "yarn lint:biome && yarn lint:tsc",
"lint:biome": "biome check .",
"lint:tsc": "tsc --noEmit",
Expand Down Expand Up @@ -64,7 +65,7 @@
"globals": "^16.0.0",
"motion": "^12.4.7",
"postcss": "^8.5.3",
"rollup": "^4.34.8",
"rollup": "^4.52.4",
"tailwindcss": "^4.0.11",
"ts-unused-exports": "^11.0.1",
"tsc": "^2.0.4",
Expand Down
Loading