mirror of
https://github.com/unraid/api.git
synced 2026-01-02 22:50:02 -06:00
fix: rearrange build
This commit is contained in:
6
.github/workflows/pull-request.yml
vendored
6
.github/workflows/pull-request.yml
vendored
@@ -44,6 +44,11 @@ jobs:
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
lint-api:
|
||||
services:
|
||||
registry: # Using a local registry is ~3x faster than exporting the image to docker agent
|
||||
image: registry:2
|
||||
ports:
|
||||
- 5000:5000
|
||||
needs: [build-cache]
|
||||
continue-on-error: true
|
||||
defaults:
|
||||
@@ -73,7 +78,6 @@ jobs:
|
||||
docker run localhost:5000/unraid-api:builder npm run lint
|
||||
|
||||
test-api:
|
||||
|
||||
services:
|
||||
registry: # Using a local registry is ~3x faster than exporting the image to docker agent
|
||||
image: registry:2
|
||||
|
||||
@@ -27,12 +27,12 @@ COPY tsconfig.json tsup.config.ts .eslintrc.cjs .npmrc .env.production .env.stag
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
|
||||
# Install deps
|
||||
RUN npm i
|
||||
|
||||
# Install pkg
|
||||
RUN npm i -g pkg zx
|
||||
|
||||
# Install deps
|
||||
RUN npm ci
|
||||
|
||||
EXPOSE 4000
|
||||
|
||||
###########################################################
|
||||
|
||||
Reference in New Issue
Block a user