feat: version aligned to woj-server

This commit is contained in:
Paul Pan 2024-03-13 20:15:46 +08:00
parent 45f6d139c8
commit 8253022a15
3 changed files with 12 additions and 3 deletions

View File

@ -15,10 +15,10 @@ WORKDIR /builder
COPY package.json /builder/package.json COPY package.json /builder/package.json
COPY pnpm-lock.yaml /builder/pnpm-lock.yaml COPY pnpm-lock.yaml /builder/pnpm-lock.yaml
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile RUN pnpm install --frozen-lockfile
COPY . /builder COPY . /builder
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm run build RUN pnpm run build
# Main # Main
FROM docker.io/library/node:slim FROM docker.io/library/node:slim

9
build_image.sh Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
DOCKER="${DOCKER:-podman}"
VERSION=$(jq -r .version < package.json)
set -x
$DOCKER build -t "git.0x7f.app/woj/woj-ui:${VERSION}" .
$DOCKER push "git.0x7f.app/woj/woj-ui:${VERSION}"

View File

@ -1,7 +1,7 @@
{ {
"name": "woj-ui", "name": "woj-ui",
"private": true, "private": true,
"version": "1.1.0", "version": "1.3.1-dev",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",