optimize building and deploying
Some checks failed
Test and deploy staging / staging (push) Failing after 13s
Some checks failed
Test and deploy staging / staging (push) Failing after 13s
This commit is contained in:
@@ -9,14 +9,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
# Build once. The same SHA-tagged image stays on the deployment host for
|
||||||
# one-click promotion to production; the production workflow never rebuilds it.
|
# one-click promotion to production; the production workflow never rebuilds it.
|
||||||
- uses: docker/build-push-action@v5
|
- uses: docker/build-push-action@v5
|
||||||
|
|||||||
@@ -12,14 +12,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: staging
|
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
|
- name: Configure deployment SSH key
|
||||||
env:
|
env:
|
||||||
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
|
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ WORKDIR /app
|
|||||||
COPY package.json bun.lock ./
|
COPY package.json bun.lock ./
|
||||||
RUN bun install --frozen-lockfile
|
RUN bun install --frozen-lockfile
|
||||||
COPY . .
|
COPY . .
|
||||||
|
RUN bun run test:unit -- --run
|
||||||
RUN bun run build
|
RUN bun run build
|
||||||
|
|
||||||
FROM oven/bun:1.4.0
|
FROM oven/bun:1.4.0
|
||||||
|
|||||||
Reference in New Issue
Block a user