ci: version from the tag or the commits since it; dev images from main gated on tests; recognise -dev. tags [CI SKIP]

This commit is contained in:
justme committed 2026-10-09 13:20:30 +08:00
1 parent a3338e1cf3
commit a9f78f99df
13 files changed
+124 -51

No files matched your search

@@ -7,12 +7,19 @@ clone:
image: plugin-git
settings:
lfs: false
# 要拿到 tag 才算得出开发版本号(ci/version.sh:自最近 tag 的提交数)
tags: true
when:
- event: push
branch: main
evaluate: 'CI_COMMIT_MESSAGE contains "[CI]"'
# 先等后端测试和前端构建都通过再出镜像(提交信息写 [SKIP TESTS] 只跳过后端测试)
depends_on:
- verify
- web-build
concurrency: 1
steps:
@@ -28,7 +35,7 @@ steps:
RELEASE_SIGNING_KEY:
from_secret: release_signing_key
commands:
- bash ci/build-main-amd64.sh backend
- bash ci/build-dev-image.sh backend
depends_on: []
- name: build-linux-amd64-agent
@@ -43,7 +50,7 @@ steps:
RELEASE_SIGNING_KEY:
from_secret: release_signing_key
commands:
- bash ci/build-main-amd64.sh agent
- bash ci/build-dev-image.sh agent
depends_on: []
- name: build-linux-amd64-probe
@@ -58,5 +65,5 @@ steps:
RELEASE_SIGNING_KEY:
from_secret: release_signing_key
commands:
- bash ci/build-main-amd64.sh probe
- bash ci/build-dev-image.sh probe
depends_on: []
+2
View File
@@ -22,6 +22,8 @@ steps:
environment:
NPM_CONFIG_CACHE: /home/justme/.npm
commands:
# 版本取自 tag:先写进工作区(仓库里的版本号只是占位),前端才会带上对的版本
- bash ci/version.sh apply
- npm ci --prefix web --prefer-offline
- timeout 600 npm run build --prefix web
depends_on: []
+1 -1
View File
@@ -11,7 +11,7 @@ clone:
when:
- event: pull_request
- event: push
branch: dev
branch: main
# On Gitea PR events, CI_COMMIT_MESSAGE is the PR title.
steps:
+1 -1
View File
@@ -11,7 +11,7 @@ clone:
when:
- event: pull_request
- event: push
branch: dev
branch: main
depends_on:
- verify