Compare commits
91
Commits
v0.3.0
...
3ee8b6bb3d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ee8b6bb3d | ||
|
|
cd9e677331 | ||
|
|
0fa2f2a26a | ||
|
|
0e7a8c14fb | ||
|
|
4a15dba8de | ||
|
|
8410735377 | ||
|
|
6310358490 | ||
|
|
0dc8c6fe34 | ||
|
|
1f70c8d31e | ||
|
|
0e0b925c8b | ||
|
|
f01bb8fd63 | ||
|
|
96990c6f4e | ||
|
|
bd35a1a966 | ||
|
|
b47e01d944 | ||
|
|
7ee860cb27 | ||
|
|
699ed8c411 | ||
|
|
0012df7b91 | ||
|
|
d5967b6110 | ||
|
|
450748f3bc | ||
|
|
5bd53f8880 | ||
|
|
643f9e1ea3 | ||
|
|
ac0bcd8e1f | ||
|
|
f4aa3f2482 | ||
|
|
180e54cb3c | ||
|
|
a19517a57d | ||
|
|
83e5120377 | ||
|
|
17b35223aa | ||
|
|
4d329f5e16 | ||
|
|
ad17170664 | ||
|
|
710aa9e99f | ||
|
|
71d2866b9c | ||
|
|
48664c0ada | ||
|
|
198ee556d6 | ||
|
|
da465866d5 | ||
|
|
3a751a0f89 | ||
|
|
d69581dcb5 | ||
|
|
8f44e924a4 | ||
|
|
0c39485a78 | ||
|
|
7a71bf57f9 | ||
|
|
22a98f2eb0 | ||
|
|
0a66f5e07a | ||
|
|
48072737c9 | ||
|
|
604cbe3123 | ||
|
|
b242701e9e | ||
|
|
83f54978d2 | ||
|
|
1e5c660d05 | ||
|
|
2e470607fa | ||
|
|
a70b89b95c | ||
|
|
a9538eae4a | ||
|
|
91c63d0cf2 | ||
|
|
193fc3a95c | ||
|
|
134c06d605 | ||
|
|
d1be70cda2 | ||
|
|
672f6e3dcb | ||
|
|
9a375ffd9e | ||
|
|
407c09f6a5 | ||
|
|
fffee8937c | ||
|
|
91485db500 | ||
|
|
fa34869f18 | ||
|
|
deb5a97802 | ||
|
|
479f8c25b0 | ||
|
|
2b80bb66d1 | ||
|
|
078eacf1cb | ||
|
|
3db6d5b159 | ||
|
|
a7a8212c08 | ||
|
|
68406843de | ||
|
|
fae8c45c90 | ||
|
|
3bf12ec73d | ||
|
|
a9ee4ec34c | ||
|
|
6b12049df0 | ||
|
|
d4b4869501 | ||
|
|
92b72d4443 | ||
|
|
67b428991f | ||
|
|
55756f7695 | ||
|
|
17a69c1c7a | ||
|
|
50d8c07939 | ||
|
|
2e549b230d | ||
|
|
ace42e5da7 | ||
|
|
ad32afd038 | ||
|
|
286c9ff7cd | ||
|
|
8aaa574485 | ||
|
|
ce30828ed3 | ||
|
|
a46f45cce3 | ||
|
|
ce3ba51c02 | ||
|
|
faf1203f0a | ||
|
|
ee422ca366 | ||
|
|
c33003c279 | ||
|
|
31af31b96f | ||
|
|
9b6c4e0fd8 | ||
|
|
ceef543854 | ||
|
|
299f86dbee |
No files matched your search
@@ -15,6 +15,17 @@ when:
|
|||||||
concurrency: 1
|
concurrency: 1
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
# 前端只构建一次:两个架构的 Backend 构建并行跑在同一个工作目录里,各自 npm ci 会互相删 node_modules(ENOTEMPTY),
|
||||||
|
# 一个失败还会把另一个的构建进程一起杀掉。Backend 把 web/*/dist 内嵌进程序(展示端和管理端由面板自己提供)。
|
||||||
|
- name: web-build
|
||||||
|
image: bash
|
||||||
|
environment:
|
||||||
|
NPM_CONFIG_CACHE: /home/justme/.npm
|
||||||
|
commands:
|
||||||
|
- npm ci --prefix web --prefer-offline
|
||||||
|
- npm run build --prefix web
|
||||||
|
depends_on: []
|
||||||
|
|
||||||
- name: linux-amd64-backend
|
- name: linux-amd64-backend
|
||||||
image: bash
|
image: bash
|
||||||
environment:
|
environment:
|
||||||
@@ -25,7 +36,8 @@ steps:
|
|||||||
from_secret: zot_secret
|
from_secret: zot_secret
|
||||||
commands:
|
commands:
|
||||||
- bash ci/release-linux.sh amd64 backend
|
- bash ci/release-linux.sh amd64 backend
|
||||||
depends_on: []
|
depends_on:
|
||||||
|
- web-build
|
||||||
|
|
||||||
- name: linux-arm64-backend
|
- name: linux-arm64-backend
|
||||||
image: bash
|
image: bash
|
||||||
@@ -37,7 +49,8 @@ steps:
|
|||||||
from_secret: zot_secret
|
from_secret: zot_secret
|
||||||
commands:
|
commands:
|
||||||
- bash ci/release-linux.sh arm64 backend
|
- bash ci/release-linux.sh arm64 backend
|
||||||
depends_on: []
|
depends_on:
|
||||||
|
- web-build
|
||||||
|
|
||||||
- name: backend-multiarch-index
|
- name: backend-multiarch-index
|
||||||
image: bash
|
image: bash
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<UseArtifactsOutput>true</UseArtifactsOutput>
|
<UseArtifactsOutput>true</UseArtifactsOutput>
|
||||||
<ArtifactsPath>$(MSBuildThisFileDirectory)artifacts</ArtifactsPath>
|
<ArtifactsPath>$(MSBuildThisFileDirectory)artifacts</ArtifactsPath>
|
||||||
<Deterministic>true</Deterministic>
|
<Deterministic>true</Deterministic>
|
||||||
<Version>0.3.0</Version>
|
<Version>0.3.1</Version>
|
||||||
<NuGetAudit>false</NuGetAudit>
|
<NuGetAudit>false</NuGetAudit>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
+5
-2
@@ -53,8 +53,11 @@ export MOSHIRO_COMMIT="${MOSHIRO_COMMIT:-${CI_COMMIT_SHA:0:10}}"
|
|||||||
export MOSHIRO_BUILT_AT="${MOSHIRO_BUILT_AT:-$(date -u +%Y-%m-%dT%H:%M:%SZ)}"
|
export MOSHIRO_BUILT_AT="${MOSHIRO_BUILT_AT:-$(date -u +%Y-%m-%dT%H:%M:%SZ)}"
|
||||||
|
|
||||||
# 前端先构建:Backend.Api 在 web/*/dist 存在时把它们内嵌进程序(展示端 /,管理端 /admin/),这样 passkey 能绑定在面板自己的域名上
|
# 前端先构建:Backend.Api 在 web/*/dist 存在时把它们内嵌进程序(展示端 /,管理端 /admin/),这样 passkey 能绑定在面板自己的域名上
|
||||||
if [[ -z "${NPM_CONFIG_CACHE:-}" && -d /home/justme/.npm ]]; then export NPM_CONFIG_CACHE=/home/justme/.npm; fi
|
# 发版流水线里有单独的 web-build 步骤先构建好了(并行的两个架构不能同时 npm ci);main 的 [CI] 构建只有一个 Backend 步骤,这里自己构建
|
||||||
(cd "$root" && npm ci --prefix web --prefer-offline && npm run build --prefix web)
|
if [[ ! -f "$root/web/display/dist/index.html" || ! -f "$root/web/admin/dist/index.html" ]]; then
|
||||||
|
if [[ -z "${NPM_CONFIG_CACHE:-}" && -d /home/justme/.npm ]]; then export NPM_CONFIG_CACHE=/home/justme/.npm; fi
|
||||||
|
(cd "$root" && npm ci --prefix web --prefer-offline && npm run build --prefix web)
|
||||||
|
fi
|
||||||
[[ -f "$root/web/display/dist/index.html" && -f "$root/web/admin/dist/index.html" ]] || { echo "the web build did not produce both apps" >&2; exit 1; }
|
[[ -f "$root/web/display/dist/index.html" && -f "$root/web/admin/dist/index.html" ]] || { echo "the web build did not produce both apps" >&2; exit 1; }
|
||||||
|
|
||||||
(cd "$root/backend" && dotnet publish src/MoShiro.Backend \
|
(cd "$root/backend" && dotnet publish src/MoShiro.Backend \
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "moshiro-web",
|
"name": "moshiro-web",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.3.0",
|
"version": "0.3.1",
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"display",
|
"display",
|
||||||
"admin"
|
"admin"
|
||||||
|
|||||||
Reference in new issue
Block a user