ci: align workflows with native Woodpecker agents
ci/woodpecker/manual/ci Pipeline failed

This commit is contained in:
justme committed 2026-10-02 11:08:51 +08:00
1 parent b548d1c71d
commit 6339f6728d
3 files changed
+30 -30

No files matched your search

+10 -11
View File
@@ -1,6 +1,10 @@
when:
- event: [push, manual]
labels:
ci: domain-linux-native
platform: linux/amd64
clone:
- name: git
image: woodpeckerci/plugin-git:2.9.3
@@ -11,14 +15,14 @@ clone:
steps:
api-contract:
image: node:24.21.0-alpine3.23
image: bash
commands:
- node scripts/check-api-contract.mjs
core-and-web:
image: node:24.21.0-alpine3.23
directory: packages/core
image: bash
commands:
- cd packages/core
- npm ci
- npm run typecheck
- npm test
@@ -26,9 +30,9 @@ steps:
- npm run build
web:
image: node:24.21.0-alpine3.23
directory: web
image: bash
commands:
- cd web
- npm ci
- npm run typecheck
- npm run lint:css
@@ -36,11 +40,6 @@ steps:
- npm run build
server:
image: mcr.microsoft.com/dotnet/sdk:10.0
image: bash
commands:
- dotnet test server/WebDrop.slnx --configuration Release --verbosity minimal
compose-config:
image: docker:29.8.1-cli-alpine3.24
commands:
- docker compose --env-file .env.example config --quiet
+18 -17
View File
@@ -2,6 +2,10 @@ when:
- event: tag
ref: refs/tags/v*
labels:
ci: domain-linux-native
platform: linux/amd64
clone:
- name: git
image: woodpeckerci/plugin-git:2.9.3
@@ -12,26 +16,23 @@ clone:
steps:
release-checks:
image: mcr.microsoft.com/dotnet/sdk:10.0
commands:
- dotnet test server/WebDrop.slnx --configuration Release --verbosity minimal
validate-release:
image: node:24.21.0-alpine3.23
image: bash
commands:
- node scripts/check-api-contract.mjs "$CI_COMMIT_TAG"
- dotnet test server/WebDrop.slnx --configuration Release --verbosity minimal
publish-backend:
image: woodpeckerci/plugin-docker-buildx:5.0.0
privileged: true
settings:
context: .
dockerfile: server/Dockerfile
platforms: linux/amd64
repo: zot.oeo.one/justme/webdrop-api
registry: zot.oeo.one
tags: ${CI_COMMIT_TAG}
username:
image: bash
environment:
ZOT_USERNAME:
from_secret: registry_username
password:
ZOT_PASSWORD:
from_secret: registry_password
ZOT_REGISTRY: zot.oeo.one
commands:
- set -euo pipefail
- printf '%s' "$ZOT_PASSWORD" | buildah login "$ZOT_REGISTRY" --username "$ZOT_USERNAME" --password-stdin
- trap 'buildah logout "$ZOT_REGISTRY" >/dev/null 2>&1 || true' EXIT
- image="$ZOT_REGISTRY/justme/webdrop-api:$CI_COMMIT_TAG"
- buildah bud --format docker --platform linux/amd64 --tag "$image" --file server/Dockerfile .
- buildah push "$image" "docker://$image"