ci: configure Woodpecker release pipelines

This commit is contained in:
justme committed 2026-10-04 22:12:21 +08:00
1 parent 26620707a0
commit 299f86dbee
12 files changed
+478 -2

No files matched your search

+56
View File
@@ -0,0 +1,56 @@
labels:
ci: domain-linux-native
platform: linux/amd64
when:
- event: tag
ref: refs/tags/v*
depends_on:
- verify
concurrency: 1
steps:
- name: linux-amd64
image: bash
environment:
NUGET_PACKAGES: /home/justme/.nuget/packages
GITEA_BASE: https://git.oeo.one
GITEA_TOKEN:
from_secret: gitea_token
ZOT_REGISTRY: 192.168.2.162:5000
ZOT_USERNAME:
from_secret: zot_username
ZOT_PASSWORD:
from_secret: zot_password
commands:
- bash ci/release-linux.sh amd64
depends_on: []
- name: linux-arm64
image: bash
environment:
NUGET_PACKAGES: /home/justme/.nuget/packages
GITEA_BASE: https://git.oeo.one
GITEA_TOKEN:
from_secret: gitea_token
ZOT_REGISTRY: 192.168.2.162:5000
ZOT_USERNAME:
from_secret: zot_username
ZOT_PASSWORD:
from_secret: zot_password
commands:
- bash ci/release-linux.sh arm64
depends_on: []
- name: backend-multiarch-index
image: bash
environment:
ZOT_REGISTRY: 192.168.2.162:5000
ZOT_USERNAME:
from_secret: zot_username
ZOT_PASSWORD:
from_secret: zot_password
commands:
- bash ci/index-backend-image.sh
+25
View File
@@ -0,0 +1,25 @@
labels:
ci: domain-linux-native
platform: linux/amd64
when:
- event: push
branch: main
- event: pull_request
- event: tag
ref: refs/tags/v*
steps:
- name: backend-tests
image: bash
environment:
NUGET_PACKAGES: /home/justme/.nuget/packages
commands:
- cd backend && dotnet test --solution Monitor.slnx -c Release
- name: web-build
image: bash
commands:
- npm ci --prefix web
- npm run build --prefix web
- npm run lint:css --prefix web
+35
View File
@@ -0,0 +1,35 @@
labels:
ci: domain-windows
platform: windows/amd64
when:
- event: tag
ref: refs/tags/v*
depends_on:
- verify
concurrency: 1
steps:
- name: windows-amd64
image: powershell
environment:
GITEA_BASE: https://git.oeo.one
GITEA_TOKEN:
from_secret: gitea_token
commands:
- Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -Force
- ./ci/release-windows.ps1 -Architecture amd64
depends_on: []
- name: windows-arm64
image: powershell
environment:
GITEA_BASE: https://git.oeo.one
GITEA_TOKEN:
from_secret: gitea_token
commands:
- Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -Force
- ./ci/release-windows.ps1 -Architecture arm64
depends_on: []