fix: ci
This commit is contained in:
parent
8ca1a77f9d
commit
0b18ef0164
4 changed files with 11 additions and 5 deletions
|
|
@ -41,14 +41,11 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Inject Auth
|
|
||||||
run: echo "//git.mcpeakdev.com/api/packages/McPeakDev/npm/:_authToken=${BUN_AUTH_TOKEN}" > /root/.npmrc
|
|
||||||
env:
|
|
||||||
BUN_AUTH_TOKEN: ${{ secrets.BUN_AUTH_TOKEN }}
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install --frozen-lockfile
|
run: bun install --frozen-lockfile
|
||||||
working-directory: ui
|
working-directory: ui
|
||||||
|
env:
|
||||||
|
BUN_AUTH_TOKEN: ${{ secrets.BUN_AUTH_TOKEN }}
|
||||||
|
|
||||||
- name: Audit dependencies
|
- name: Audit dependencies
|
||||||
run: bun audit || true
|
run: bun audit || true
|
||||||
|
|
@ -92,3 +89,5 @@ jobs:
|
||||||
git.mcpeakdev.com/mcpeakdev/mercury:latest
|
git.mcpeakdev.com/mcpeakdev/mercury:latest
|
||||||
cache-from: type=registry,ref=git.mcpeakdev.com/mcpeakdev/mercury:latest
|
cache-from: type=registry,ref=git.mcpeakdev.com/mcpeakdev/mercury:latest
|
||||||
cache-to: type=inline
|
cache-to: type=inline
|
||||||
|
secrets: |
|
||||||
|
bun_auth_token=${{ secrets.BUN_AUTH_TOKEN }}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,10 @@
|
||||||
FROM oven/bun:1-alpine AS ui-builder
|
FROM oven/bun:1-alpine AS ui-builder
|
||||||
WORKDIR /ui
|
WORKDIR /ui
|
||||||
COPY ui/ .
|
COPY ui/ .
|
||||||
|
RUN --mount=type=secret,id=bun_auth_token \
|
||||||
|
printf '//git.mcpeakdev.com/api/packages/McPeakDev/npm/:_authToken=%s\n@nychthemeron:registry=https://git.mcpeakdev.com/api/packages/McPeakDev/npm/\n' \
|
||||||
|
"$(cat /run/secrets/bun_auth_token)" > .npmrc && \
|
||||||
|
bun install --frozen-lockfile
|
||||||
RUN bun run build
|
RUN bun run build
|
||||||
|
|
||||||
# Stage 2: Build Rust API
|
# Stage 2: Build Rust API
|
||||||
|
|
|
||||||
1
ui/.gitignore
vendored
1
ui/.gitignore
vendored
|
|
@ -1,5 +1,6 @@
|
||||||
node_modules/
|
node_modules/
|
||||||
dist/
|
dist/
|
||||||
|
.npmrc
|
||||||
|
|
||||||
# vue-tsc emit artifacts (should never appear in src/ — noEmit is set)
|
# vue-tsc emit artifacts (should never appear in src/ — noEmit is set)
|
||||||
src/**/*.vue.js
|
src/**/*.vue.js
|
||||||
|
|
|
||||||
2
ui/bunfig.toml
Normal file
2
ui/bunfig.toml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
[install.scopes]
|
||||||
|
"@nychthemeron" = { url = "https://git.mcpeakdev.com/api/packages/McPeakDev/npm/" }
|
||||||
Loading…
Reference in a new issue