optimize building and deploying
Some checks failed
Test and deploy staging / staging (push) Failing after 13s

This commit is contained in:
2026-09-23 04:36:58 +00:00
parent d0c7b6548b
commit 1d0b96e7bc
3 changed files with 1 additions and 16 deletions

View File

@@ -9,14 +9,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.4.0
- name: Install and test
run: |
bun install --frozen-lockfile
bun run test:unit -- --run
# Build once. The same SHA-tagged image stays on the deployment host for
# one-click promotion to production; the production workflow never rebuilds it.
- uses: docker/build-push-action@v5

View File

@@ -12,14 +12,6 @@ jobs:
with:
ref: staging
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.4.0
- name: Check staging source
run: |
bun install --frozen-lockfile
bun run test:unit -- --run
- name: Configure deployment SSH key
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}

View File

@@ -3,6 +3,7 @@ WORKDIR /app
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile
COPY . .
RUN bun run test:unit -- --run
RUN bun run build
FROM oven/bun:1.4.0