Compare commits
No commits in common. "c0503a91a6396cfe6da832af1c5d134b7f841071" and "add196902b8a93d602d4e52f7212b5e966a47e16" have entirely different histories.
c0503a91a6
...
add196902b
3 changed files with 24 additions and 27 deletions
|
|
@ -2,14 +2,3 @@
|
||||||
build
|
build
|
||||||
node_modules
|
node_modules
|
||||||
README.md
|
README.md
|
||||||
.forgejo
|
|
||||||
.git
|
|
||||||
.claude
|
|
||||||
.grepai
|
|
||||||
docs
|
|
||||||
plans
|
|
||||||
cypress
|
|
||||||
*.log
|
|
||||||
.env*
|
|
||||||
!.env.example
|
|
||||||
tsconfig.*.tsbuildinfo
|
|
||||||
|
|
|
||||||
|
|
@ -44,10 +44,24 @@ jobs:
|
||||||
DATABASE_URL: postgresql://test:test@postgres:5432/brackt_test
|
DATABASE_URL: postgresql://test:test@postgres:5432/brackt_test
|
||||||
NODE_OPTIONS: --max-old-space-size=4096
|
NODE_OPTIONS: --max-old-space-size=4096
|
||||||
|
|
||||||
check:
|
typecheck:
|
||||||
name: ʦ🔍 Typecheck & Lint
|
name: ʦ TypeScript
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 15
|
timeout-minutes: 10
|
||||||
|
steps:
|
||||||
|
- name: ⬇️ Checkout repo
|
||||||
|
uses: https://github.com/actions/checkout@v4
|
||||||
|
|
||||||
|
- name: 📥 Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: 🔎 Type check
|
||||||
|
run: npm run typecheck
|
||||||
|
|
||||||
|
lint:
|
||||||
|
name: 🔍 Lint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
- name: ⬇️ Checkout repo
|
- name: ⬇️ Checkout repo
|
||||||
uses: https://github.com/actions/checkout@v4
|
uses: https://github.com/actions/checkout@v4
|
||||||
|
|
@ -58,12 +72,9 @@ jobs:
|
||||||
- name: 🔍 Lint (oxlint)
|
- name: 🔍 Lint (oxlint)
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
|
|
||||||
- name: 🔎 Type check
|
|
||||||
run: npm run typecheck
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: 🐳 Build
|
name: 🐳 Build
|
||||||
needs: [test, check]
|
needs: [test, typecheck, lint]
|
||||||
if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }}
|
if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
|
|
@ -71,6 +82,9 @@ jobs:
|
||||||
- name: ⬇️ Checkout repo
|
- name: ⬇️ Checkout repo
|
||||||
uses: https://github.com/actions/checkout@v4
|
uses: https://github.com/actions/checkout@v4
|
||||||
|
|
||||||
|
- name: 🐳 Install Docker CLI
|
||||||
|
run: apt-get update -qq && apt-get install -y -qq docker.io
|
||||||
|
|
||||||
- name: 🐳 Set up Docker Buildx
|
- name: 🐳 Set up Docker Buildx
|
||||||
uses: https://github.com/docker/setup-buildx-action@v3
|
uses: https://github.com/docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
|
|
||||||
10
Dockerfile
10
Dockerfile
|
|
@ -9,15 +9,9 @@ WORKDIR /app
|
||||||
RUN --mount=type=secret,id=npmrc,target=/app/.npmrc npm ci --omit=dev
|
RUN --mount=type=secret,id=npmrc,target=/app/.npmrc npm ci --omit=dev
|
||||||
|
|
||||||
FROM node:20-alpine AS build-env
|
FROM node:20-alpine AS build-env
|
||||||
WORKDIR /app
|
COPY . /app/
|
||||||
COPY --from=development-dependencies-env /app/node_modules /app/node_modules
|
COPY --from=development-dependencies-env /app/node_modules /app/node_modules
|
||||||
COPY package.json package-lock.json tsconfig*.json vite.config.ts react-router.config.ts drizzle.config.ts ./
|
WORKDIR /app
|
||||||
COPY scripts/ /app/scripts/
|
|
||||||
COPY app/ /app/app/
|
|
||||||
COPY server/ /app/server/
|
|
||||||
COPY database/ /app/database/
|
|
||||||
COPY public/ /app/public/
|
|
||||||
COPY instrument.server.mjs ./
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM node:20-alpine
|
FROM node:20-alpine
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue